Minor fixes

This commit is contained in:
Sebastien Thebert committed 2022-10-30 01:50:30 +02:00
1 parent 6a09818893
commit aa273fdcbb
1 file changed
+4 -2
+4 -2
View File
@@ -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)