From e140fcdee4eed942db1172a6c89d023de8be0b0e Mon Sep 17 00:00:00 2001 From: Gasper Spagnolo Date: Tue, 1 Nov 2022 14:03:29 +0100 Subject: [PATCH] Zdej bo cajt za lxc --- deploy_forcad.yml | 16 ++++++++-------- roles/services/tasks/main.yml | 8 ++++++++ 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/deploy_forcad.yml b/deploy_forcad.yml index 9e58c57..6dfc5f7 100644 --- a/deploy_forcad.yml +++ b/deploy_forcad.yml @@ -7,16 +7,16 @@ vars_prompt: - 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 tasks: - - name: install and setup forcad - include_role: - name: forcad - tasks_from: main - - # - name: Setup team lxc containers and services + # - name: install and setup forcad # include_role: - # name: services + # name: forcad # tasks_from: main + + - name: Setup team lxc containers and services + include_role: + name: services + tasks_from: main diff --git a/roles/services/tasks/main.yml b/roles/services/tasks/main.yml index af0c4b8..032db4e 100644 --- a/roles/services/tasks/main.yml +++ b/roles/services/tasks/main.yml @@ -22,6 +22,14 @@ profiles: ["default"] wait_for_ipv4_addresses: true 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 delegate_to: mycontainer