Correct variable syntax in conditional as well as default parameter
This commit is contained in:
parent
23d1037181
commit
7851b80722
|
@ -1,9 +1,9 @@
|
|||
rhn_username: "{{ lookup('env', 'RHN_USERNAME') }}"
|
||||
rhn_password: "{{ lookup('env', 'RHN_PASSWORD') }}"
|
||||
|
||||
rhsub_state: enable
|
||||
rhsub_state: present # present or absent
|
||||
rhsub_autosubscribe: True
|
||||
|
||||
rhsub_repos: {}
|
||||
# rhsub_repos:
|
||||
# - name: rhel-7-server-extras-rpms # wildcard or repo name
|
||||
# state: enable # enable or disable
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
- name: Check that this is Red Hat
|
||||
assert:
|
||||
that: "{{ ansible_distribution }} == 'RedHat'"
|
||||
that: "ansible_distribution == 'RedHat'"
|
||||
tags:
|
||||
- rhsub
|
||||
|
||||
|
|
Loading…
Reference in New Issue