Minor fixes
This commit is contained in:
1 parent
6a09818893
commit
aa273fdcbb
1 file changed
+4
-2
@@ -1,9 +1,11 @@
|
|||||||
---
|
---
|
||||||
- ansible.builtin.shell: "command pro"
|
- name: Check if command 'pro' exists
|
||||||
|
ansible.builtin.shell: "command pro"
|
||||||
register: reg_command_pro
|
register: reg_command_pro
|
||||||
ignore_errors: yes
|
ignore_errors: yes
|
||||||
|
|
||||||
- set_fact:
|
- name: Set variable 'pro_command_exists'
|
||||||
|
ansible.builtin.set_fact:
|
||||||
pro_command_exists: "{{ (reg_command_pro.rc == 127) | ternary(false, true) }}"
|
pro_command_exists: "{{ (reg_command_pro.rc == 127) | ternary(false, true) }}"
|
||||||
|
|
||||||
- name: Unregister this host on Ubuntu Pro (pro detach)
|
- name: Unregister this host on Ubuntu Pro (pro detach)
|
||||||
|
|||||||
Reference in new issue
Block a user