Merge pull request #12 from sebthebert/dev_detach

Minor fixes
This commit is contained in:
Sebastien Thebert authored and GitHub committed 2022-10-30 01:51:15 +02:00
commit e74e100657
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
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) }}"
- name: Unregister this host on Ubuntu Pro (pro detach)