switches from fedora to arch, reorg, etc
This commit is contained in:
@@ -1,15 +1,9 @@
|
||||
---
|
||||
- name: Configure DNF
|
||||
template:
|
||||
src: dnf.conf.j2
|
||||
dest: /etc/dnf/dnf.conf
|
||||
|
||||
- name: Create groups
|
||||
group:
|
||||
name: "{{ item.value.group }}"
|
||||
gid: "{{ item.value.uid }}"
|
||||
state: "{{ item.value.state }}"
|
||||
loop: "{{ init_users | dict2items }}"
|
||||
name: "{{ item }}"
|
||||
state: present
|
||||
loop: "{{ init_groups }}"
|
||||
|
||||
- name: Ensure Users are Configured Correctly
|
||||
user:
|
||||
@@ -51,3 +45,15 @@
|
||||
template:
|
||||
src: motd.j2
|
||||
dest: /etc/motd
|
||||
|
||||
- name: Install galaxy collections
|
||||
community.general.ansible_galaxy_install:
|
||||
type: collection
|
||||
name: "{{ item }}"
|
||||
loop: "{{ ansible_galaxy_collections }}"
|
||||
|
||||
- name: start/enable docker daemon
|
||||
systemd:
|
||||
name: docker.service
|
||||
state: started
|
||||
enabled: true
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
---
|
||||
init_groups:
|
||||
- wheel
|
||||
- docker
|
||||
|
||||
remove_directories:
|
||||
- Templates
|
||||
- Videos
|
||||
@@ -10,7 +14,6 @@ remove_directories:
|
||||
- Desktop
|
||||
|
||||
create_directories:
|
||||
- bin
|
||||
- documents
|
||||
- music
|
||||
- downloads
|
||||
@@ -23,7 +26,7 @@ create_directories:
|
||||
init_users:
|
||||
opal:
|
||||
name: opal
|
||||
uid: 2000
|
||||
uid: 1000
|
||||
group: opal
|
||||
groups:
|
||||
- wheel
|
||||
@@ -31,3 +34,7 @@ init_users:
|
||||
state: present
|
||||
shell: /bin/bash
|
||||
create_home: true
|
||||
|
||||
ansible_galaxy_collections:
|
||||
- community.docker
|
||||
- ansible.posix
|
||||
|
||||
Reference in New Issue
Block a user