Add 'Ubuntu LTS Release validation'
This commit is contained in:
1 parent
651e52d194
commit
6b1e5bb9bd
4 files changed
+30
-4
No files matched your search
+6
-3
@@ -1,4 +1,6 @@
|
||||
---
|
||||
- include_tasks: validate_ubuntu_lts_version.yml
|
||||
|
||||
- name: Launch 'apt update'
|
||||
ansible.builtin.apt:
|
||||
update_cache: yes
|
||||
@@ -8,11 +10,12 @@
|
||||
ansible.builtin.apt:
|
||||
upgrade: yes
|
||||
become: yes
|
||||
|
||||
|
||||
- name: Register this host on Ubuntu Pro (pro attach <token>)
|
||||
command: pro attach {{ ubuntu_pro_token }}
|
||||
ansible.builtin.command: "pro attach {{ ubuntu_pro_token }}"
|
||||
become: yes
|
||||
register: reg_pro_attach
|
||||
|
||||
- debug:
|
||||
- name: Print 'pro attach' command output
|
||||
ansible.builtin.debug:
|
||||
var: reg_pro_attach
|
||||
Reference in new issue
Block a user