Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions roles/vagrant_workarounds/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
when:
- ansible_facts['os_family'] == 'RedHat'

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

os_name is CentOS and could have been used here

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the problem for me was that I did run

ansible localhost -i "localhost," -c local -m setup | grep os_name and it returned blank, probably because I did that inside of one container.

I used this fact because: of this:

ansible localhost -i "localhost," -c local -m setup -a "filter=ansible_distribution*"
localhost | SUCCESS => {
    "ansible_facts": {
        "ansible_distribution": "CentOS",
        "ansible_distribution_file_parsed": true,
        "ansible_distribution_file_path": "/etc/centos-release",
        "ansible_distribution_file_variety": "CentOS",
        "ansible_distribution_major_version": "9",
        "ansible_distribution_release": "Stream",
        "ansible_distribution_version": "9",
        "discovered_interpreter_python": "/usr/bin/python3"
    },
    "changed": false
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or distribution, that works too.

Never remember the right name between facter/puppet and ansible

- ansible_facts['distribution_major_version'] == '9'
- ansible_facts['ansible_distribution_release'] == 'Stream'

- name: don't install broken openssl on EL9
community.general.ini_file:
Expand All @@ -33,3 +34,4 @@
when:
- ansible_facts['os_family'] == 'RedHat'
- ansible_facts['distribution_major_version'] == '9'
- ansible_facts['ansible_distribution_release'] == 'Stream'
Loading