diff options
Diffstat (limited to 'playbooks')
7 files changed, 30 insertions, 0 deletions
diff --git a/playbooks/roles/tcwg-tk1-cpucore/defaults/git.hold b/playbooks/roles/tcwg-tk1-cpucore/defaults/git.hold new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/playbooks/roles/tcwg-tk1-cpucore/defaults/git.hold diff --git a/playbooks/roles/tcwg-tk1-cpucore/files/rc.local b/playbooks/roles/tcwg-tk1-cpucore/files/rc.local new file mode 100644 index 0000000..68497d5 --- /dev/null +++ b/playbooks/roles/tcwg-tk1-cpucore/files/rc.local @@ -0,0 +1,21 @@ +#!/bin/sh -e +# +# rc.local +# +# This script is executed at the end of each multiuser runlevel. +# Make sure that the script will "exit 0" on success or any other +# value on error. +# +# In order to enable or disable this script just change the execution +# bits. +# +# By default this script does nothing. + +echo 0 > /sys/devices/system/cpu/cpuquiet/tegra_cpuquiet/enable +echo 1 > /sys/devices/system/cpu/cpu0/online +echo 1 > /sys/devices/system/cpu/cpu1/online +echo 1 > /sys/devices/system/cpu/cpu2/online +echo 1 > /sys/devices/system/cpu/cpu3/online + +exit 0 + diff --git a/playbooks/roles/tcwg-tk1-cpucore/handlers/main.yml b/playbooks/roles/tcwg-tk1-cpucore/handlers/main.yml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/playbooks/roles/tcwg-tk1-cpucore/handlers/main.yml diff --git a/playbooks/roles/tcwg-tk1-cpucore/meta/git.hold b/playbooks/roles/tcwg-tk1-cpucore/meta/git.hold new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/playbooks/roles/tcwg-tk1-cpucore/meta/git.hold diff --git a/playbooks/roles/tcwg-tk1-cpucore/tasks/main.yml b/playbooks/roles/tcwg-tk1-cpucore/tasks/main.yml new file mode 100644 index 0000000..b8a5ea3 --- /dev/null +++ b/playbooks/roles/tcwg-tk1-cpucore/tasks/main.yml @@ -0,0 +1,9 @@ +--- + + - name: Copy modified rc.local + copy: src=rc.local dest=/etc/rc.local owner=root group=root mode=0644 + when: ansible_cmdline.tegraid == "40.1.1.0.0" + + - name: Disable OnDemand service + command: update-rc.d ondemand remove + when: ansible_cmdline.tegraid == "40.1.1.0.0" diff --git a/playbooks/roles/tcwg-tk1-cpucore/templates/git.hold b/playbooks/roles/tcwg-tk1-cpucore/templates/git.hold new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/playbooks/roles/tcwg-tk1-cpucore/templates/git.hold diff --git a/playbooks/roles/tcwg-tk1-cpucore/vars/main.yml b/playbooks/roles/tcwg-tk1-cpucore/vars/main.yml new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/playbooks/roles/tcwg-tk1-cpucore/vars/main.yml |