-
Notifications
You must be signed in to change notification settings - Fork 0
/
testdocker.yml
67 lines (55 loc) · 1.71 KB
/
testdocker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
--- # Configure a temporary LXC Container with Docker
- name: Configure test Docker host
hosts: testdocker
tasks:
- name: 'Update apt cache'
become: true
apt:
update_cache: yes
- name: 'Upgrade packages'
become: true
apt:
upgrade: safe
autoremove: yes
- name: 'Install apt packages'
become: true
apt:
package:
- curl
- screen
- name: Install magic wormhole
become: true
get_url:
url: https://github.com/magic-wormhole/magic-wormhole.rs/releases/download/0.6.0/wormhole-rs
dest: /usr/local/bin/wormhole-rs
mode: "a+x"
- name: Download just install script
get_url:
url: https://just.systems/install.sh
dest: /tmp/install.sh
when: just_exists.stat.exists == false
- name: Make the script executable
file:
path: /tmp/install.sh
mode: +x
when: just_exists.stat.exists == false
- name: Run just install script
become: true
command: /tmp/install.sh --to /usr/local/bin
when: just_exists.stat.exists == false
- name: Download lazydocker install script
get_url:
url: https://raw.githubusercontent.com/jesseduffield/lazydocker/master/scripts/install_update_linux.sh
dest: /tmp/install_lazydocker.sh
- name: Make the script executable
file:
path: /tmp/install_lazydocker.sh
mode: +x
- name: Run lazydocker install script
command: /tmp/install_lazydocker.sh
roles:
- role: geerlingguy.docker
vars:
docker_install_compose_plugin: true
docker_compose_package: docker-compose-plugin
docker_compose_package_state: present