working disable/enable services
This commit is contained in:
1 parent
3de1cd1c9b
commit
342c00eda6
6 files changed
+69
-30
No files matched your search
@@ -0,0 +1,10 @@
|
||||
---
|
||||
- name: Register this host on Ubuntu Pro (pro attach <token>)
|
||||
ansible.builtin.command: "pro attach {{ ubuntu_pro_token }}"
|
||||
become: yes
|
||||
register: reg_pro_attach
|
||||
failed_when: (reg_pro_attach.rc != 0) and ('This machine is already attached to' not in reg_pro_attach.stderr_lines[0])
|
||||
|
||||
- name: Print 'pro attach' command output
|
||||
ansible.builtin.debug:
|
||||
var: reg_pro_attach
|
||||
Reference in new issue
Block a user