From cc100bcf0a884320d93f67bcc69733acf97c1cf8 Mon Sep 17 00:00:00 2001 From: Jason Cameron Date: Tue, 29 Oct 2024 21:30:25 -0400 Subject: [PATCH] Update ansible update task Signed-off-by: Jason Cameron --- automation/playbooks/update.yml | 17 ++++++++++------- automation/update_nodes.sh | 2 +- 2 files changed, 11 insertions(+), 8 deletions(-) diff --git a/automation/playbooks/update.yml b/automation/playbooks/update.yml index 9a21bf1..58390ad 100644 --- a/automation/playbooks/update.yml +++ b/automation/playbooks/update.yml @@ -3,6 +3,9 @@ become: yes # Use privilege escalation (e.g., sudo) gather_facts: true tasks: + - name: Update SSH keys + ansible.builtin.include_tasks: "tasks/users.yml" + - name: Update each WLMOJ repository environment: GIT_TERMINAL_PROMPT: 0 @@ -38,13 +41,13 @@ - name: Remove outdated docker artifacts ansible.builtin.include_tasks: "tasks/cleanup.yml" - # - name: Update docker stack - # docker_stack: - # state: present - # name: wlmoj - # compose: - # - /home/judge/docker/dmoj/docker-stack.yml - # when: ansible_hostname == "general" + # - name: Update docker stack + # docker_stack: + # state: present + # name: wlmoj + # compose: + # - /home/judge/docker/dmoj/docker-stack.yml + # when: ansible_hostname == "general" - name: Update packages apt: diff --git a/automation/update_nodes.sh b/automation/update_nodes.sh index a6645a8..d2f481f 100755 --- a/automation/update_nodes.sh +++ b/automation/update_nodes.sh @@ -11,4 +11,4 @@ cd "$( pwd -P )" || exit 1 # cd to the directory of the script to ensure relative paths work -ansible-playbook -i inventory.ini playbooks/update.yml +ansible-playbook -i inventory.ini --ask-vault-pass playbooks/update.yml