Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Altered playbooks to be able to be ran by azimuth #41

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions os_builders/playbooks/prepare_user_image.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
- name: Prep STFC Cloud User Image
hosts: default
hosts: localhost
become: true

pre_tasks:
- name: Exit if provision_this_machine is not set
fail:
msg: "provision_this_machine is not set, exiting"
when: provision_this_machine is not defined
- name: User warning
msg: "[Warning] Do not run on non-cloud machine"

roles:
- role: vm_baseline
Expand Down
2 changes: 1 addition & 1 deletion os_builders/playbooks/prepare_user_image_post_reboot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- name: Prep STFC Cloud User Image After Reboot
hosts: default
hosts: localhost
become: true
roles:
- role: nubes_bootcontext
Expand Down
15 changes: 13 additions & 2 deletions os_builders/roles/vm_baseline/tasks/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,20 @@
state: latest
update_cache: yes
when: ansible_distribution == "Rocky"
register: result
until: result is not failed
retries: 5
delay: 30

- name: Install system updates for Ubuntu systems
apt:
ansible.builtin.apt:
upgrade: dist
update_cache: yes
when: ansible_distribution == "Ubuntu"
autoremove: yes
autoclean: yes
become: true
when: ansible_distribution == 'Ubuntu'
register: result
until: result is not failed
retries: 5
delay: 30
Loading