|
@ -7,32 +7,34 @@ |
|
|
check_mode: false |
|
|
check_mode: false |
|
|
|
|
|
|
|
|
- include_tasks: bootstrap-centos.yml |
|
|
- include_tasks: bootstrap-centos.yml |
|
|
when: '"CentOS" in os_release.stdout or "Oracle" in os_release.stdout' |
|
|
|
|
|
|
|
|
when: '''ID="centos"'' in os_release.stdout_lines or ''ID="ol"'' in os_release.stdout_lines' |
|
|
|
|
|
|
|
|
- include_tasks: bootstrap-redhat.yml |
|
|
- include_tasks: bootstrap-redhat.yml |
|
|
when: '"Red Hat Enterprise Linux" in os_release.stdout and "CentOS" not in os_release.stdout' |
|
|
|
|
|
|
|
|
when: '''ID="rhel"'' in os_release.stdout_lines' |
|
|
|
|
|
|
|
|
- include_tasks: bootstrap-clearlinux.yml |
|
|
- include_tasks: bootstrap-clearlinux.yml |
|
|
when: '"Clear Linux OS" in os_release.stdout' |
|
|
|
|
|
|
|
|
when: '''ID=clear-linux-os'' in os_release.stdout_lines' |
|
|
|
|
|
|
|
|
|
|
|
# Fedora CoreOS |
|
|
- include_tasks: bootstrap-fedora-coreos.yml |
|
|
- include_tasks: bootstrap-fedora-coreos.yml |
|
|
when: '"ID=fedora" in os_release.stdout and "VARIANT_ID=coreos" in os_release.stdout' |
|
|
|
|
|
|
|
|
when: |
|
|
|
|
|
- '''ID=fedora'' in os_release.stdout_lines' |
|
|
|
|
|
- '''VARIANT_ID=coreos'' in os_release.stdout_lines' |
|
|
|
|
|
|
|
|
- include_tasks: bootstrap-flatcar.yml |
|
|
- include_tasks: bootstrap-flatcar.yml |
|
|
when: |
|
|
|
|
|
- '"Flatcar" in os_release.stdout' |
|
|
|
|
|
- '"ID=fedora" not in os_release.stdout' |
|
|
|
|
|
|
|
|
when: '''ID=flatcar'' in os_release.stdout_lines' |
|
|
|
|
|
|
|
|
- include_tasks: bootstrap-debian.yml |
|
|
- include_tasks: bootstrap-debian.yml |
|
|
when: '"Debian" in os_release.stdout or "Ubuntu" in os_release.stdout' |
|
|
|
|
|
|
|
|
when: '''ID=debian'' in os_release.stdout_lines or ''ID=ubuntu'' in os_release.stdout_lines' |
|
|
|
|
|
|
|
|
|
|
|
# Fedora "classic" |
|
|
- include_tasks: bootstrap-fedora.yml |
|
|
- include_tasks: bootstrap-fedora.yml |
|
|
when: |
|
|
when: |
|
|
- '"Fedora" in os_release.stdout' |
|
|
|
|
|
- '"VARIANT_ID=coreos" not in os_release.stdout' |
|
|
|
|
|
|
|
|
- '''ID=fedora'' in os_release.stdout_lines' |
|
|
|
|
|
- '''VARIANT_ID=coreos'' not in os_release.stdout_lines' |
|
|
|
|
|
|
|
|
- include_tasks: bootstrap-opensuse.yml |
|
|
- include_tasks: bootstrap-opensuse.yml |
|
|
when: '"openSUSE" in os_release.stdout' |
|
|
|
|
|
|
|
|
when: '''ID="opensuse-leap"'' in os_release.stdout_lines or ''ID="opensuse-tumbleweed"'' in os_release.stdout_lines' |
|
|
|
|
|
|
|
|
- name: Create remote_tmp for it is used by another module |
|
|
- name: Create remote_tmp for it is used by another module |
|
|
file: |
|
|
file: |
|
|