Correct variable syntax in conditional as well as default parameter

This commit is contained in:
Sam Doran 2016-06-15 10:35:02 -04:00
parent 23d1037181
commit 7851b80722
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -1,6 +1,6 @@
- name: Check that this is Red Hat
assert:
that: "{{ ansible_distribution }} == 'RedHat'"
that: "ansible_distribution == 'RedHat'"
tags:
- rhsub