Skip to content

Commit

Permalink
Update ansible update task
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Cameron <[email protected]>
  • Loading branch information
JasonLovesDoggo committed Oct 30, 2024
1 parent 9a72fb1 commit cc100bc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
17 changes: 10 additions & 7 deletions automation/playbooks/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion automation/update_nodes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit cc100bc

Please sign in to comment.