Compare commits

..

2 Commits

Author SHA1 Message Date
1fdb9651c0 Add skip-pull to k8s roles
They absolutely do not work in a pull environment
2021-02-17 06:07:36 -06:00
3eb5b50832 Add functionality to ansible-pull for skip-tags 2021-02-17 06:06:02 -06:00
3 changed files with 4 additions and 3 deletions

View File

@ -5,11 +5,11 @@
- hosts: k8s
roles:
- role: docker
tags: [ k8s, docker ]
tags: [ k8s, docker, skip-pull ]
# Note: the master and all its nodes must run this role at the same time
# in order for the join token to be registered properly.
# Failure to do so will result in nodes not joining the cluster.
- role: k8s
vars:
kubernetes_enable_web_ui: yes
tags: [ k8s ]
tags: [ k8s, skip-pull ]

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