- hosts: localhost vars_files: ../../map.yml tasks: - name: Create noveriablcgen app-dir file: state: directory path: "{{ app_dir }}/noveriablcgen" owner: root group: root mode: '0755' - name: Clone noveriablcgen git-repo git: repo: https://git.noveria.org/Tools/noveriablcgen.git dest: "{{ app_dir }}/noveriablcgen" force: true - name: Symlink noveriablcgen file: state: link src: "{{ app_dir }}/noveriablcgen/noveriablcgen" dest: "{{ bin_dir }}/noveriablcgen" owner: root group: root mode: '0755' - name: noveriablcgen etc dir file: state: directory path: "{{ etc_dir }}/noveriablcgen" owner: root group: root mode: '0755' - name: Get ROOT_UUID shell: | lsblk -o LABEL,UUID | grep ROOT | awk '{print $2}' register: root_uuid run_once: true - name: Populate noveriablcgen config template: src: files/noveriablcgen_config.json.j2 dest: "{{ etc_dir }}/noveriablcgen/noveriablcgen.json" owner: root group: root mode: '0644' vars: BTRFS_ROOT: "/btrfs" GRUB_CONFD: "/etc/grub.d" GRUB_CONFIG_FILENAME: "10_noveria" ROOT_UUID: "{{ root_uuid.stdout }}" GRUB_CONFIG: "/boot/grub/grub.cfg"