Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Albert
ansible-playbooks
Commits
0aebcad2
Commit
0aebcad2
authored
Aug 29, 2018
by
albert
Browse files
fixed lxc shutdown errory
parent
a08c0ef7
Pipeline
#2580
skipped
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
system_playbooks/configure_instance.yml
View file @
0aebcad2
...
...
@@ -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
...
...
system_playbooks/copy_file.yml
View file @
0aebcad2
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment