Only restart Ansible on failure

whups
This commit is contained in:
Salt 2020-08-19 04:48:02 -05:00
parent 1d623bfed1
commit e0011646a0

View File

@ -9,7 +9,7 @@ User=ansible
Group=ansible Group=ansible
Environment=ANSIBLE_CONFIG=~/ansible-pull-repo/ansible-pull.cfg Environment=ANSIBLE_CONFIG=~/ansible-pull-repo/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 }}" 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=always Restart=on-failure
RestartSec=90 RestartSec=90
[Install] [Install]