Browse code

Dodanie tmuxa do listy instalowanych pakietow.

Lukasz P authored on17/04/2021 08:29:07
Showing4 changed files
... ...
@@ -25,3 +25,7 @@
25 25
   import_playbook: "helpers/install_vm_basic_tools.yaml"
26 26
   when: "'virtual' in group_names"
27 27
 
28
+- name: Setup containers tools
29
+  import_playbook: "helpers/install_containers_tools.yaml"
30
+  when: "'containers' in group_names"
31
+
... ...
@@ -12,6 +12,7 @@
12 12
       - net-tools
13 13
       - moreutils
14 14
       - needrestart
15
+      - tmux
15 16
       - tree
16 17
       - mtr
17 18
       - vim
... ...
@@ -25,6 +26,7 @@
25 26
       - vim
26 27
       - mtr
27 28
       - tree
29
+      - tmux
28 30
       - net-tools
29 31
       - python3-policycoreutils
30 32
       - policycoreutils-python-utils
... ...
@@ -40,6 +42,7 @@
40 42
       - telnet
41 43
       - vim
42 44
       - tree
45
+      - tmux
43 46
       - python3-firewall
44 47
       state: present
45 48
     when: ansible_os_family == 'Suse'
46 49
new file mode 100644
... ...
@@ -0,0 +1,32 @@
1
+--- 
2
+#- import_playbook: apt_cache_update.yaml
3
+
4
+- name: Install containers tools
5
+  hosts: all
6
+
7
+
8
+  tasks:
9
+
10
+  - name: Install VM tools on Redhat-like host
11
+    dnf:
12
+      name:
13
+      - toolbox
14
+      - podman
15
+      state: latest
16
+    when: ansible_os_family == 'RedHat'
17
+
18
+#  TO-DO There are no packages for Ubuntu 20.04 yet.
19
+#  - name: Install VM tools on Debian-like hosts
20
+#    apt:
21
+#      pkg:
22
+#      - podman
23
+#    when: ansible_os_family == 'Debian'
24
+#
25
+#  TO-DO Podman pulls Python 2.7, which brakes Ansible configuration.
26
+#  - name: Install VM tools on Suse hosts
27
+#    zypper:
28
+#      name:
29
+#      - podman
30
+#      state: present
31
+#    when: ansible_os_family == 'Suse'
32
+
... ...
@@ -11,6 +11,9 @@ jezynka.ping.local
11 11
 aegis.ping.local
12 12
 potemkin.ping.local
13 13
 
14
+[containers]
15
+fedora33test.ping.local
16
+
14 17
 [virtual]
15 18
 python-cave.ping.local
16 19
 rawhide.ping.local