From 7851b8072248140e3587fe92da2e5a6426076e32 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Wed, 15 Jun 2016 10:35:02 -0400 Subject: [PATCH] Correct variable syntax in conditional as well as default parameter --- defaults/main.yml | 4 ++-- tasks/main.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 0420270..a740af6 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -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 diff --git a/tasks/main.yml b/tasks/main.yml index 295db70..e743776 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,6 +1,6 @@ - name: Check that this is Red Hat assert: - that: "{{ ansible_distribution }} == 'RedHat'" + that: "ansible_distribution == 'RedHat'" tags: - rhsub