Commit 0aebcad2 authored by albert's avatar albert
Browse files

fixed lxc shutdown errory

parent a08c0ef7
Pipeline #2580 skipped
......@@ -4,7 +4,7 @@
gather_facts : no
tasks:
- name: install python
raw: sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y install python
raw: sudo apt-get update && sudo apt-get -y upgrade && sudo apt-get -y install python-minimal
- hosts: all
......
......@@ -38,6 +38,13 @@
# echo "{{ private_key.stdout }}" > {{ key_name.stdout }}
# echo "{{ inventory.stdout }}" > {{ inventory_name.stdout }}
# chmod 600 {{ key_name.stdout }}
- name: Start Container
lxc_container:
name: "{{ container }}"
state: started
- name : save inventory and private key
shell : |
cd ~/tmp
......@@ -48,6 +55,12 @@
become: yes
become_user: "{{ username }}"
- name: Start Container
lxc_container:
name: "{{ container }}"
state: stopped
vars_files:
- vault/sudo_pass.yml
- vars/lxc_vars.yml
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment