WIP: dotsfiles
This commit is contained in:
parent
d26137b908
commit
338b168026
9 changed files with 37 additions and 2 deletions
|
|
@ -7,3 +7,7 @@
|
|||
- name: Configure low-level keyboard device
|
||||
include_role:
|
||||
name: keyboard
|
||||
- name: Configure low-level display interface
|
||||
include_role:
|
||||
name: display
|
||||
|
||||
|
|
|
|||
|
|
@ -430,6 +430,7 @@ common:
|
|||
files:
|
||||
- nautilus
|
||||
browser:
|
||||
- dillo
|
||||
- aur/librewolf-bin
|
||||
- aur/ungoogled-chromium-bin
|
||||
terminal_emulator:
|
||||
|
|
|
|||
1
ansible/roles/display/tasks/main.yam.
Normal file
1
ansible/roles/display/tasks/main.yam.
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
5
ansible/roles/display/tasks/main.yaml
Normal file
5
ansible/roles/display/tasks/main.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
- name: Install ddcutil
|
||||
community.general.pacman:
|
||||
name: ddcutil
|
||||
state: present
|
||||
- name: Install ddcsetup program
|
||||
|
|
@ -9,5 +9,7 @@
|
|||
- name: Copy files
|
||||
ansible.builtin.copy:
|
||||
src: "{{ dotsfiles_repo_path.stdout }}/confs/src/{{ config['src'] }}"
|
||||
force: true
|
||||
remote_src: true
|
||||
dest: "{{ home }}/{{ config['dest'] }}"
|
||||
force: true
|
||||
mode: u=rw,g=r,o=
|
||||
|
|
|
|||
12
ansible/roles/dotsfiles/tasks/install_glue_scripts.yaml
Normal file
12
ansible/roles/dotsfiles/tasks/install_glue_scripts.yaml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
- name: Init glue_scripts bin directory
|
||||
ansible.builtin.file:
|
||||
path: "{{ home }}/.local/share/glue_scripts/bin"
|
||||
state: directory
|
||||
- name: Copy glue script
|
||||
ansible.builtin.copy:
|
||||
src: "{{ dotsfiles_repo_path.stdout }}/glue_scripts/src/{{ item['src'] }}"
|
||||
remote_src: true
|
||||
dest: "{{ home }}/.local/share/glue_scripts/bin/{{ item['src'] }}"
|
||||
force: true
|
||||
mode: u=rwx,g=r,o=
|
||||
with_items: "{{ config.static_executable_copy }}"
|
||||
|
|
@ -19,3 +19,12 @@
|
|||
file: install_configs.yaml
|
||||
vars:
|
||||
config_map: "{{ (dotsfiles_map_yaml.content | b64decode | from_yaml).config_map }}"
|
||||
- name: Read glue scripts config
|
||||
ansible.builtin.slurp:
|
||||
src: "{{ dotsfiles_repo_path.stdout }}/glue_scripts/config.yaml"
|
||||
register: glue_scripts_config_yaml
|
||||
- name: Install glue scripts
|
||||
ansible.builtin.include_tasks:
|
||||
file: install_glue_scripts.yaml
|
||||
vars:
|
||||
config: "{{ (glue_scripts_config_yaml.content | b64decode | from_yaml) }}"
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ export ANSIBLE_PLAYBOOK="${ANSIBLE_PLAYBOOK:-workstation.yaml}"
|
|||
playbookPath="$base/$ANSIBLE_PLAYBOOK"
|
||||
|
||||
ansible-playbook $playbookPath \
|
||||
-vvvvv \
|
||||
-v \
|
||||
--ask-become-pass \
|
||||
-i "inventory.yaml" \
|
||||
--ssh-extra-args "-o ControlMaster=auto -o ControlPersist=60s -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 22 -i ./master_sshkey" \
|
||||
|
|
|
|||
1
main.yaml
Normal file
1
main.yaml
Normal file
|
|
@ -0,0 +1 @@
|
|||
|
||||
Loading…
Add table
Add a link
Reference in a new issue