2020-06-17 08:52:28 -05:00
|
|
|
# vim:ft=dosini:
|
|
|
|
[Unit]
|
|
|
|
Description=Ansible pull service
|
2020-08-18 10:02:13 -05:00
|
|
|
StartLimitIntervalSec=3600
|
|
|
|
StartLimitBurst=5
|
2020-06-17 08:52:28 -05:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=ansible
|
|
|
|
Group=ansible
|
2020-10-26 18:36:49 -05:00
|
|
|
Environment=ANSIBLE_CONFIG=~/ansible-pull.cfg
|
2020-06-25 02:16:06 -05:00
|
|
|
ExecStart=/usr/local/bin/ansible-pull --accept-host-key -U "{{ ansible_pull_repo }}" -d "~/ansible-pull-repo" --vault-password-file "~/ansiblevaultpass" "{{ ansible_pull_playbook }}"
|
2020-08-19 04:48:02 -05:00
|
|
|
Restart=on-failure
|
2020-08-18 10:02:13 -05:00
|
|
|
RestartSec=90
|
2020-06-17 08:52:28 -05:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|