Add functionality to ansible-pull for skip-tags
This commit is contained in:
parent
2773f537bc
commit
3eb5b50832
@ -3,3 +3,4 @@ ansible_pull_boot_delay: 15min
|
|||||||
ansible_pull_commit: master
|
ansible_pull_commit: master
|
||||||
ansible_pull_time: "*-*-* 01:00:00"
|
ansible_pull_time: "*-*-* 01:00:00"
|
||||||
ansible_pull_playbook: site.yml
|
ansible_pull_playbook: site.yml
|
||||||
|
ansible_pull_skip_tags: "skip-pull"
|
||||||
|
@ -11,7 +11,7 @@ User=ansible
|
|||||||
Group=ansible
|
Group=ansible
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
Environment=ANSIBLE_CONFIG=~/ansible-pull-repo/ansible-pull.cfg
|
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
|
Restart=on-failure
|
||||||
RestartSec=90
|
RestartSec=90
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user