Add functionality to ansible-pull for skip-tags

This commit is contained in:
Salt 2021-02-17 06:06:02 -06:00
parent 2773f537bc
commit 3eb5b50832
2 changed files with 2 additions and 1 deletions

View File

@ -3,3 +3,4 @@ ansible_pull_boot_delay: 15min
ansible_pull_commit: master
ansible_pull_time: "*-*-* 01:00:00"
ansible_pull_playbook: site.yml
ansible_pull_skip_tags: "skip-pull"

View File

@ -11,7 +11,7 @@ User=ansible
Group=ansible
Type=oneshot
Environment=ANSIBLE_CONFIG=~/ansible-pull-repo/ansible-pull.cfg
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 }}"
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 }}"
Restart=on-failure
RestartSec=90