Skip to content

Ensure that the workaround for openssl is only executed on Centos Stream 9#1965

Merged
Odilhao merged 1 commit into
theforeman:masterfrom
Odilhao:ansible-fact-cs9-instead-of-alma
Jul 8, 2026
Merged

Ensure that the workaround for openssl is only executed on Centos Stream 9#1965
Odilhao merged 1 commit into
theforeman:masterfrom
Odilhao:ansible-fact-cs9-instead-of-alma

Conversation

@Odilhao

@Odilhao Odilhao commented Jul 8, 2026

Copy link
Copy Markdown
Member

No description provided.

@Odilhao Odilhao merged commit 21f9fe3 into theforeman:master Jul 8, 2026
7 of 8 checks passed
@@ -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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants