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
2 files changed
+5 -3

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ argument_specs:
- 'fips'
- 'fips-updates'
- 'livepatch' # Canonical Kernel Livepatch
- 'usg'
- 'usg'
state:
description: State of Ubuntu Pro installation
type: str
+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)