Minor fixes
This commit is contained in:
1 parent
6a09818893
commit
aa273fdcbb
2 files changed
+5
-3
No files matched your search
@@ -31,7 +31,7 @@ argument_specs:
|
|||||||
- 'fips'
|
- 'fips'
|
||||||
- 'fips-updates'
|
- 'fips-updates'
|
||||||
- 'livepatch' # Canonical Kernel Livepatch
|
- 'livepatch' # Canonical Kernel Livepatch
|
||||||
- 'usg'
|
- 'usg'
|
||||||
state:
|
state:
|
||||||
description: State of Ubuntu Pro installation
|
description: State of Ubuntu Pro installation
|
||||||
type: str
|
type: str
|
||||||
|
|||||||
@@ -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