diff --git a/playbooks/setupworkstation/main.yaml b/playbooks/setupworkstation/main.yaml index 14b6fdf..369abb6 100644 --- a/playbooks/setupworkstation/main.yaml +++ b/playbooks/setupworkstation/main.yaml @@ -63,7 +63,7 @@ role: installdnfrepo loop: - id: googlechrome - baseurl: https://dl.google.com/linux/chrome/rpm/stable/x86_64 + baseurl: https://dl.google.com/linux/chrome/rpm/stable/x86_64 gpgkey: https://dl.google.com/linux/linux_signing_key.pub - id: wayscriber @@ -90,6 +90,7 @@ - btrfs-progs - coreutils - moreutils + - parallel - fcitx5-gtk4 - file - gh @@ -288,6 +289,11 @@ firewall-cmd --permanent --zone home --add-service=kdeconnect --add-service=mosh --add-service=ssh firewall-cmd --reload + - import_role: + role: managegooglechrome + become: true + name: set chrome policies + - name: enabled tailscaled service become: true ansible.builtin.service: diff --git a/roles/ManageGoogleChrome/README.md b/roles/ManageGoogleChrome/README.md deleted file mode 100644 index 225dd44..0000000 --- a/roles/ManageGoogleChrome/README.md +++ /dev/null @@ -1,38 +0,0 @@ -Role Name -========= - -A brief description of the role goes here. - -Requirements ------------- - -Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. - -Role Variables --------------- - -A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. - -Dependencies ------------- - -A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. - -Example Playbook ----------------- - -Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: - - - hosts: servers - roles: - - { role: username.rolename, x: 42 } - -License -------- - -BSD - -Author Information ------------------- - -An optional section for the role authors to include contact information, or a website (HTML is not allowed). diff --git a/roles/ManageGoogleChrome/defaults/main.yml b/roles/ManageGoogleChrome/defaults/main.yml deleted file mode 100644 index 73cf7a2..0000000 --- a/roles/ManageGoogleChrome/defaults/main.yml +++ /dev/null @@ -1,3 +0,0 @@ -#SPDX-License-Identifier: MIT-0 ---- -# defaults file for . diff --git a/roles/ManageGoogleChrome/handlers/main.yml b/roles/ManageGoogleChrome/handlers/main.yml deleted file mode 100644 index 764c257..0000000 --- a/roles/ManageGoogleChrome/handlers/main.yml +++ /dev/null @@ -1,3 +0,0 @@ -#SPDX-License-Identifier: MIT-0 ---- -# handlers file for . diff --git a/roles/ManageGoogleChrome/tasks/main.yml b/roles/ManageGoogleChrome/tasks/main.yml deleted file mode 100644 index 36bd513..0000000 --- a/roles/ManageGoogleChrome/tasks/main.yml +++ /dev/null @@ -1,3 +0,0 @@ -#SPDX-License-Identifier: MIT-0 ---- -# tasks file for . diff --git a/roles/ManageGoogleChrome/tests/inventory b/roles/ManageGoogleChrome/tests/inventory deleted file mode 100644 index 03ca42f..0000000 --- a/roles/ManageGoogleChrome/tests/inventory +++ /dev/null @@ -1,3 +0,0 @@ -#SPDX-License-Identifier: MIT-0 -localhost - diff --git a/roles/ManageGoogleChrome/tests/test.yml b/roles/ManageGoogleChrome/tests/test.yml deleted file mode 100644 index a037512..0000000 --- a/roles/ManageGoogleChrome/tests/test.yml +++ /dev/null @@ -1,6 +0,0 @@ -#SPDX-License-Identifier: MIT-0 ---- -- hosts: localhost - remote_user: root - roles: - - . diff --git a/roles/ManageGoogleChrome/vars/main.yml b/roles/ManageGoogleChrome/vars/main.yml deleted file mode 100644 index efd55ae..0000000 --- a/roles/ManageGoogleChrome/vars/main.yml +++ /dev/null @@ -1,3 +0,0 @@ -#SPDX-License-Identifier: MIT-0 ---- -# vars file for . diff --git a/roles/ManageGoogleChrome/files/disable-local-llm.json b/roles/managegooglechrome/files/disable-local-llm.json similarity index 100% rename from roles/ManageGoogleChrome/files/disable-local-llm.json rename to roles/managegooglechrome/files/disable-local-llm.json diff --git a/roles/ManageGoogleChrome/meta/main.yml b/roles/managegooglechrome/meta/main.yml similarity index 100% rename from roles/ManageGoogleChrome/meta/main.yml rename to roles/managegooglechrome/meta/main.yml diff --git a/roles/managegooglechrome/tasks/main.yml b/roles/managegooglechrome/tasks/main.yml new file mode 100644 index 0000000..7ef604c --- /dev/null +++ b/roles/managegooglechrome/tasks/main.yml @@ -0,0 +1,16 @@ +- name: manage google chrome + block: + + - ansible.builtin.file: + path: /etc/opt/chrome/policies/managed/ + state: directory + owner: root + group: root + mode: '0755' + + - ansible.builtin.copy: + src: disable-local-llm.json + dest: /etc/opt/chrome/policies/managed/disable-local-llm.json + owner: root + group: root + mode: '0644'