Salt
fd87cb00d0
Turns out this caused serious problems if a host had never actually fully run ansible-pull before
17 lines
440 B
Desktop File
17 lines
440 B
Desktop File
# vim:ft=dosini:
|
|
[Unit]
|
|
Description=Ansible pull service
|
|
StartLimitIntervalSec=3600
|
|
StartLimitBurst=5
|
|
|
|
[Service]
|
|
User=ansible
|
|
Group=ansible
|
|
Environment=ANSIBLE_CONFIG=~/ansible-pull.cfg
|
|
ExecStart=/usr/local/bin/ansible-pull --accept-host-key -U "{{ ansible_pull_repo }}" -d "~/ansible-pull-repo" --vault-password-file "~/ansiblevaultpass" "{{ ansible_pull_playbook }}"
|
|
Restart=on-failure
|
|
RestartSec=90
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|