Files
ansible/playbooks/pi_upgrade.yml

34 lines
737 B
YAML

- name: Update the Pi OS
hosts: nextcloud
tasks:
- name: call the update role
ansible.builtin.include_role:
name: upgrade_os
tasks_from: pi_update.yml
- name: call the upgrade role
ansible.builtin.include_role:
name: upgrade_os
tasks_from: pi_upgrade.yml
- name: call the restart role
ansible.builtin.include_role:
name: upgrade_os
tasks_from: pi_restart.yml
# tasks:
# - name: create file to write in
# become: false
# command: touch output.txt
#
# - name: get system informations
# become: true
# shell: apt update
# register: os_info
#
# - debug:
# msg: "{{os_info.stdout_lines}}"
#when: inventory_hostname in groups['proxy']