d0f6b18735
Without this conditional, the package install was being attempted on Centos systems. This needs to merge first to unblock further testing. Change-Id: I6fab2b1b85ed544096bb3206ecb9c4d5bc391f0d
13 lines
313 B
YAML
13 lines
313 B
YAML
- name: Install ua-tools
|
|
become: true
|
|
package:
|
|
name: ubuntu-advantage-tools
|
|
state: present
|
|
when: ansible_distribution == 'Ubuntu'
|
|
|
|
- name: Attach subscription
|
|
command: pro attach --no-auto-enable "{{ ubuntu_ua_token.token }}"
|
|
become: true
|
|
no_log: true
|
|
when: ansible_distribution == 'Ubuntu'
|