1
0
mirror of https://gitlab.com/dbrw/ansible-setup.git synced 2026-02-06 04:45:31 +07:00

add docker task

This commit is contained in:
dbrw
2022-07-11 16:34:50 +07:00
parent 2760e8f99d
commit b941dd9f33
7 changed files with 35 additions and 5 deletions

View File

@@ -0,0 +1,18 @@
- name: Install docker from repo
community.general.pacman:
name:
- docker
- docker-compose
- name: Add user {{ username }} to docker group
ansible.builtin.user:
groups: docker
append: True
user: "{{ username }}"
- name: Enable docker service
ansible.builtin.systemd:
name: docker
state: started
enabled: yes

View File

@@ -125,12 +125,12 @@
with_items:
- .config
- .local
- .ssh
- .xinitrc
- .gtkrc-2.0
- .Xresources
- .Xresources.d
- .tmux.conf
- .zlogin
- name: Install TPM
become_user: "{{ username }}"
@@ -146,7 +146,7 @@
ansible.builtin.copy:
src: user_home/.ssh
dest: /home/{{ username }}
force: False
force: no
mode: 'preserve'
group: '{{ username }}'
owner: '{{ username }}'
@@ -222,5 +222,3 @@
name: xrdb
enabled: true
- name: Install xlogin-git
aur: name=xlogin-git user={{ username }} dir={{ aur.dir }}

View File

@@ -61,6 +61,9 @@
- include_tasks: virtualization.yml
when: install_virtualization == True
- include_tasks: docker.yml
when: install_docker == True
# Dotfiles
- include_tasks: dotfiles.yml
when: pull_dotfiles == True

View File

@@ -39,5 +39,4 @@
- name: Ensure virtualization network active
community.libvirt.virt_net:
autostart: yes
state: active
name: jungle