Fix the roles to actually work; touch a file for lxc to run
This commit is contained in:
parent
a21471be9b
commit
84c0b449b5
@ -1,5 +1,5 @@
|
|||||||
---
|
---
|
||||||
lxc_hosts_container_build_command: "dnf --assumeyes --installroot=/var/lib/machines/{{ lxc_container_base_name }} install --setopt=install_weak_deps=False --nodocs rootfiles coreutils dnf rocky-release rocky-repos --releasever=8"
|
lxc_hosts_container_build_command: "dnf --assumeyes --installroot=/var/lib/machines/{{ lxc_container_base_name }} install --setopt=install_weak_deps=False --nodocs rootfiles coreutils dnf rocky-release rocky-repos systemd --releasever=8"
|
||||||
|
|
||||||
|
|
||||||
lxc_container_map:
|
lxc_container_map:
|
||||||
|
@ -3,5 +3,6 @@
|
|||||||
hosts: "{{ host | default('aio1') }}"
|
hosts: "{{ host | default('aio1') }}"
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
tasks:
|
- import_playbook: setup-distributed.yml
|
||||||
- import_playbook: setup-distributed.yml aio_install=1
|
vars:
|
||||||
|
aio_install: 1
|
||||||
|
@ -26,25 +26,19 @@
|
|||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Initialize nodes
|
- name: Initialize nodes
|
||||||
include_tasks: tasks/init-nodes.yml
|
import_tasks: tasks/init-nodes.yml
|
||||||
args:
|
|
||||||
apply:
|
|
||||||
tags: 'init'
|
|
||||||
tags: init
|
|
||||||
|
|
||||||
- name: Reboot
|
- name: Reboot
|
||||||
include_tasks: tasks/reboot.yml
|
import_tasks: tasks/reboot.yml
|
||||||
tags: reboot
|
when: reboot | default(true) | bool
|
||||||
|
|
||||||
- name: Setup infra hosts
|
- name: Setup infra hosts
|
||||||
include_tasks: tasks/infra-host.yml
|
import_tasks: tasks/infra-host.yml
|
||||||
when: tag.find("infra") != -1 # when on an infra tagged host
|
when: tag.find("infra") != -1 or aio_install | default(false) | bool # when on an infra tagged host
|
||||||
tags: infra
|
|
||||||
|
|
||||||
- name: Setup storage hosts
|
- name: Setup storage hosts
|
||||||
include_tasks: tasks/storage-host.yml
|
import_tasks: tasks/storage-host.yml
|
||||||
when: tag.find("storage") != -1 # when on an infra tagged host
|
when: tag.find("storage") != -1 # when on an storage tagged host
|
||||||
tags: storage
|
|
||||||
|
|
||||||
post_tasks:
|
post_tasks:
|
||||||
- name: Touching run file that ansible has ran here
|
- name: Touching run file that ansible has ran here
|
||||||
|
@ -33,12 +33,21 @@
|
|||||||
tags: secrets
|
tags: secrets
|
||||||
args:
|
args:
|
||||||
creates: /etc/openstack_deploy/user_secrets.yml.tar
|
creates: /etc/openstack_deploy/user_secrets.yml.tar
|
||||||
|
when: aio_install is undefined | default(false)
|
||||||
|
|
||||||
- import_tasks: tasks/python3-lxc.yml
|
- import_tasks: tasks/python3-lxc.yml
|
||||||
|
|
||||||
|
- name:
|
||||||
|
file:
|
||||||
|
path: /usr/share/lxc/config/rockylinux.common.conf
|
||||||
|
mode: '0644'
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
|
||||||
tags: python3-lxc
|
tags: python3-lxc
|
||||||
|
|
||||||
- name: "[AIO] Deploy and setup configuration / bootstrap"
|
- name: "[AIO] Deploy and setup configuration / bootstrap"
|
||||||
when: aio_install | default('false')
|
when: aio_install | default('false') | bool
|
||||||
block:
|
block:
|
||||||
- name: Debug - Running AIO bootstrap
|
- name: Debug - Running AIO bootstrap
|
||||||
debug:
|
debug:
|
||||||
|
@ -81,7 +81,6 @@
|
|||||||
name:
|
name:
|
||||||
- git-core
|
- git-core
|
||||||
- wget
|
- wget
|
||||||
#- python36
|
|
||||||
- chrony
|
- chrony
|
||||||
- openssh-server
|
- openssh-server
|
||||||
#- python3-devel
|
#- python3-devel
|
||||||
|
Loading…
Reference in New Issue
Block a user