Files
ansible-role-ubuntu_pro/tasks/main.yml
T
2022-10-11 00:08:23 +02:00

17 lines
330 B
YAML

---
- name: Launch 'apt update'
ansible.builtin.apt:
update_cache: yes
- name: Launch 'apt upgrade'
ansible.builtin.apt:
upgrade: yes
- name: Register this host on Ubuntu Pro (pro attach <token>)
command: pro attach {{ ubuntu_pro_token }}
become: yes
register: reg_pro_attach
- debug:
var: reg_pro_attach