generated from nicolabelluti/template-ansible
Added users role to manage the playbook as root and remove admin privileges from deck
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
- name: Install build and runtime prerequisites
|
||||
become: true
|
||||
community.general.pacman:
|
||||
name:
|
||||
- git
|
||||
@@ -32,7 +31,6 @@
|
||||
|
||||
# pipx keeps this out of the system python environment.
|
||||
- name: Install the CLI system-wide
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- pipx
|
||||
@@ -42,21 +40,18 @@
|
||||
|
||||
always:
|
||||
- name: Remove temporary directory
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: "{{ smu_tmp.path }}"
|
||||
state: absent
|
||||
when: smu_tmp.path is defined
|
||||
|
||||
- name: Create the config directory
|
||||
become: true
|
||||
ansible.builtin.file:
|
||||
path: /etc/bc250
|
||||
state: directory
|
||||
mode: '0755'
|
||||
|
||||
- name: Deploy the overclock profile
|
||||
become: true
|
||||
ansible.builtin.template:
|
||||
src: overclock.conf.j2
|
||||
dest: /etc/bc250/overclock.conf
|
||||
@@ -64,7 +59,6 @@
|
||||
register: oc_conf
|
||||
|
||||
- name: Install the overclock service
|
||||
become: true
|
||||
ansible.builtin.command:
|
||||
argv:
|
||||
- bc250-apply
|
||||
@@ -73,7 +67,6 @@
|
||||
when: oc_conf.changed
|
||||
|
||||
- name: Enable the overclock service at boot
|
||||
become: true
|
||||
ansible.builtin.systemd_service:
|
||||
name: bc250-smu-oc
|
||||
enabled: true
|
||||
|
||||
Reference in New Issue
Block a user