Add conditional for UA registration role
Without this conditional, the package install was being attempted on Centos systems. This needs to merge first to unblock further testing. Change-Id: I6fab2b1b85ed544096bb3206ecb9c4d5bc391f0d
This commit is contained in:
parent
ff1836691e
commit
d0f6b18735
@ -3,10 +3,10 @@
|
|||||||
package:
|
package:
|
||||||
name: ubuntu-advantage-tools
|
name: ubuntu-advantage-tools
|
||||||
state: present
|
state: present
|
||||||
|
when: ansible_distribution == 'Ubuntu'
|
||||||
|
|
||||||
- name: Attach subscription
|
- name: Attach subscription
|
||||||
command: pro attach --no-auto-enable "{{ ubuntu_ua_token.token }}"
|
command: pro attach --no-auto-enable "{{ ubuntu_ua_token.token }}"
|
||||||
become: true
|
become: true
|
||||||
no_log: true
|
no_log: true
|
||||||
when: >
|
when: ansible_distribution == 'Ubuntu'
|
||||||
(ansible_distribution == "Ubuntu")
|
|
||||||
|
Loading…
Reference in New Issue
Block a user