Allow redhat.yml to support any distribution and major release

Change-Id: If230992ba779bc8fffb953c4dd56bca9b4edc247
This commit is contained in:
Jonathan Rosser 2022-02-14 15:39:09 +00:00
parent e9a70f3789
commit 105d467a3b
1 changed files with 3 additions and 3 deletions

View File

@ -14,9 +14,9 @@
# limitations under the License.
lxc_container_map:
distro: centos
arch: amd64
release: 8
distro: "{{ hostvars[physical_host]['ansible_facts']['distribution'] | lower }}"
arch: "{{ lxc_architecture_mapping.get( hostvars[physical_host]['ansible_facts']['architecture'] | lower ) }}"
release: "{{ hostvars[physical_host]['ansible_facts']['distribution_major_version'] }}"
lxc_container_default_config_list:
- "lxc.start.auto=1"