Zdej bo cajt za lxc
parent
988e628c9a
commit
e140fcdee4
|
@ -7,16 +7,16 @@
|
||||||
|
|
||||||
vars_prompt:
|
vars_prompt:
|
||||||
- name: "n_teams"
|
- name: "n_teams"
|
||||||
prompt: "How many teams do yo wish me to create?"
|
prompt: "How many teams do you wish me to create?"
|
||||||
private: false
|
private: false
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: install and setup forcad
|
# - name: install and setup forcad
|
||||||
include_role:
|
|
||||||
name: forcad
|
|
||||||
tasks_from: main
|
|
||||||
|
|
||||||
# - name: Setup team lxc containers and services
|
|
||||||
# include_role:
|
# include_role:
|
||||||
# name: services
|
# name: forcad
|
||||||
# tasks_from: main
|
# tasks_from: main
|
||||||
|
|
||||||
|
- name: Setup team lxc containers and services
|
||||||
|
include_role:
|
||||||
|
name: services
|
||||||
|
tasks_from: main
|
||||||
|
|
|
@ -22,6 +22,14 @@
|
||||||
profiles: ["default"]
|
profiles: ["default"]
|
||||||
wait_for_ipv4_addresses: true
|
wait_for_ipv4_addresses: true
|
||||||
timeout: 600
|
timeout: 600
|
||||||
|
register: info
|
||||||
|
|
||||||
|
- debug:
|
||||||
|
msg: "{{ info }}"
|
||||||
|
|
||||||
|
- name: BEGIN lxc exec ...
|
||||||
|
set_fact:
|
||||||
|
ansible_python_interpreter: lxc exec mycontainer -- /usr/bin/python3
|
||||||
|
|
||||||
- name: Check python is installed in container
|
- name: Check python is installed in container
|
||||||
delegate_to: mycontainer
|
delegate_to: mycontainer
|
||||||
|
|
Loading…
Reference in New Issue