Files
media-server/media-buildout.yml
zware 0b21488aa5 Inital Commit
Play installs docker, pip and other basic requirements.
Build out dockeruser, and add zware user to docker group.
2022-08-21 20:41:43 -05:00

33 lines
741 B
YAML

- hosts: all
become: true
vars:
pip_install_packages:
- name: docker
roles:
- geerlingguy.pip
- geerlingguy.docker
tasks:
- name: install docker tools
ansible.builtin.package:
name: "{{ item }}"
state: present
loop:
- curl
- git
- tree
- vim
- docker-ce
- docker-ce-cli
- docker-compose
- name: Create Dockeruser and Add to Docker Group
ansible.builtin.user:
name: "{{ item.user }}"
shell: "{{ item.shell }}"
groups: "{{ item.groups }}"
loop:
- { user: "zware", shell: "/bin/zsh", groups: "sudo,docker" }
- { user: "dockeruser", shell: "/bin/bash", groups: "docker" }