Skip to content

Commit

Permalink
fix(ansible): consolidate files for simplicity
Browse files Browse the repository at this point in the history
Signed-off-by: Boris Glimcher <[email protected]>
  • Loading branch information
glimchb committed May 14, 2024
1 parent d411fa4 commit d467ce5
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 58 deletions.
14 changes: 0 additions & 14 deletions lab/ansible/debian.yml

This file was deleted.

18 changes: 0 additions & 18 deletions lab/ansible/redhat.yml

This file was deleted.

43 changes: 30 additions & 13 deletions lab/ansible/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,22 +27,39 @@
hosts: hostservers,DPUs
become: yes
tasks:
- import_tasks: debian.yml
- name: Install usefull packages
ansible.builtin.package:
name: python3-pip,sshpass,git
state: present

- name: Debian | Docker
when: ansible_os_family == 'Debian'
block:
- name: Debian | Remove old docker
ansible.builtin.package:
name: docker.io,docker-doc,docker-compose,docker-compose-v2,podman-docker,containerd,runc
state: absent
- name: Debian | Install new docker
ansible.builtin.package:
name: docker-ce,docker-ce-cli,containerd.io,docker-buildx-plugin,docker-compose-plugin
state: present

- import_tasks: redhat.yml
- name: Red Hat | Docker
when: ansible_os_family == 'RedHat'

#- import_tasks: suse.yml
# when: ansible_os_family == 'Suse'

- name: Install other generic packages
ansible.builtin.package:
name: python3-pip,sshpass,git
state: present

- name: Testing
shell: uname -a
block:
- name: Red Hat | Install package dependencies
ansible.builtin.package:
name: podman,podman-docker,podman-plugins
state: present
# docker-compose >=2 does not work with podman currently
- name: Red Hat | Install docker-compose
ansible.builtin.pip:
name: docker-compose>=1.29,<2
state: present
- name: Red Hat | Enable podman socket for docker-compose
ansible.builtin.systemd:
name: podman.socket
state: started

# TODO: copy correct telegraf.conf file per host...

Expand Down
13 changes: 0 additions & 13 deletions lab/ansible/suse.yml

This file was deleted.

0 comments on commit d467ce5

Please sign in to comment.