2020-10-17 01:00:06 -05:00
|
|
|
# vim:ft=dosini:
|
|
|
|
[Unit]
|
|
|
|
Description=Ansible pull service
|
|
|
|
StartLimitIntervalSec=3600
|
|
|
|
StartLimitBurst=5
|
2021-01-16 23:19:28 -06:00
|
|
|
After=network-online.target
|
|
|
|
Wants=network-online.target
|
2020-10-17 01:00:06 -05:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
User=ansible
|
|
|
|
Group=ansible
|
2021-01-16 23:47:29 -06:00
|
|
|
Type=oneshot
|
2020-10-17 01:00:06 -05:00
|
|
|
Environment=ANSIBLE_CONFIG=~/ansible-pull-repo/ansible-pull.cfg
|
2021-02-17 06:06:02 -06:00
|
|
|
ExecStart=ansible-pull --accept-host-key -U "{{ ansible_pull_repo }}" -C "{{ ansible_pull_commit }}" -d "~/ansible-pull-repo" --vault-password-file "~/ansiblevaultpass" "{{ ansible_pull_playbook }}" --skip-tags "{{ ansible_pull_skip_tags }}"
|
2020-10-17 01:00:06 -05:00
|
|
|
Restart=on-failure
|
|
|
|
RestartSec=90
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|