From 89bb7de3be44da875939c81b05070650d0243e19 Mon Sep 17 00:00:00 2001 From: git Date: Thu, 18 May 2023 16:13:37 +0200 Subject: [PATCH] Sytax fix --- playbook.yml | 15 +++++++-------- roles/gui_app_init/tasks/font_set.yml | 2 +- roles/linux_config_init/tasks/hostname_set.yml | 2 +- roles/linux_config_init/tasks/main.yml | 4 ++-- roles/linux_config_init/tasks/set_perma_ip.yml | 2 +- 5 files changed, 12 insertions(+), 13 deletions(-) diff --git a/playbook.yml b/playbook.yml index 05aac46..03c8c26 100644 --- a/playbook.yml +++ b/playbook.yml @@ -5,12 +5,11 @@ user: warezjoe host: desktop # desktop rpi ntb roles: - - role: linux_config_init # run with sudo alone - #- role: import_ssh_key # without sudo - #- role: tools_for_command_line - #- role: service_start - #- role: gui_app_init - #- role: ansible-role-docker + # run with sudo alone + - role: linux_config_init + # - role: import_ssh_key # without sudo + # - role: tools_for_command_line + # - role: service_start + # - role: gui_app_init + # - role: ansible-role-docker # docker_users: "{{ user }}" - - diff --git a/roles/gui_app_init/tasks/font_set.yml b/roles/gui_app_init/tasks/font_set.yml index 09fb265..f2c8d3e 100644 --- a/roles/gui_app_init/tasks/font_set.yml +++ b/roles/gui_app_init/tasks/font_set.yml @@ -6,7 +6,7 @@ - name: Hack exists shell: "ls /home/{{ user }}/.local/share/fonts/Hack*Nerd*Font*Complete*" register: hack_exists - ignore_errors: yes + ignore_errors: true - name: Download Hack when: hack_exists is failed diff --git a/roles/linux_config_init/tasks/hostname_set.yml b/roles/linux_config_init/tasks/hostname_set.yml index 9032283..2e944f7 100644 --- a/roles/linux_config_init/tasks/hostname_set.yml +++ b/roles/linux_config_init/tasks/hostname_set.yml @@ -1,3 +1,3 @@ - name: Set a hostname ansible.builtin.hostname: - name: "{{ host }}" \ No newline at end of file + name: "{{ host }}" diff --git a/roles/linux_config_init/tasks/main.yml b/roles/linux_config_init/tasks/main.yml index 9789cbf..5fd4864 100644 --- a/roles/linux_config_init/tasks/main.yml +++ b/roles/linux_config_init/tasks/main.yml @@ -3,10 +3,10 @@ - name: System settings in /etc ansible.builtin.include_tasks: "{{ item }}" loop: - - static_dns.yml + # - static_dns.yml - sudoer_no_passwd.yml - hostname_set.yml - name: Set Pernament IP ansible.builtin.include_tasks: set_perma_ip.yml - when: host != 'ntb' \ No newline at end of file + when: host != 'ntb' diff --git a/roles/linux_config_init/tasks/set_perma_ip.yml b/roles/linux_config_init/tasks/set_perma_ip.yml index cc095b5..6ffadec 100644 --- a/roles/linux_config_init/tasks/set_perma_ip.yml +++ b/roles/linux_config_init/tasks/set_perma_ip.yml @@ -20,4 +20,4 @@ dns4: 8.8.8.8 state: present autoconnect: true - when: host == 'desktop' \ No newline at end of file + when: host == 'desktop'