- hosts: workstation gather_facts: False vars: config_files: - dir: tmux name: tmux.conf - dir: alacritty name: alacritty.toml - dir: wofi name: style.css tasks: - name: Init arch block: - file: path: /home/mbess/.workstation_setup_state state: touch - copy: content="2024-05-20T11:28:07.552Z c385e8f1-9f34-47d3-9155-0cc1f04c4550" dest=/home/mbess/.workstation_setup_state - name: Install some packages become: true community.general.pacman: name: - jq - fx - jo - yq - name: Install packages from YAML files (excluding AUR) become: true community.general.pacman: name: "{{ lookup('file', 'arch_packages.json') | from_json }}" # the python script will return a list of packages # - name: Install yay, an AUR helper - name: Clone books sources ansible.builtin.git: repo: "git@forge.lefuturiste.fr:mbess/books-sources.git" dest: /home/mbess/workspace/books_sources - name: Setup config directories file: path: "/home/mbess/.config/{{ item.dir }}" state: directory recurse: true loop: "{{ config_files }}" - name: Setup symbolic links to config files file: src: "/home/mbess/.dots/config/{{ item.dir }}/{{ item.name }}" dest: "/home/mbess/.config/{{ item.dir }}/{{ item.name }}" state: link loop: "{{ config_files }}" - name: Setup main popequer notebook include_role: name: popequer_notebook - name: Setup quick notes folder file: path: "/home/mbess/.hidden/quick_notes/" state: directory recurse: true - name: Setup temporary secrets folder (cookies jar) file: path: "/home/mbess/.cache/secrets/" state: directory recurse: true