fix conditionals for hwpstate.

This commit is contained in:
Tom Alexander 2022-10-15 20:39:59 -04:00
parent ece2ac4920
commit c45e4cc3fa
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
4 changed files with 3 additions and 7 deletions

View File

@ -11,3 +11,4 @@ network_rc: "odofreebsd_network.conf"
rc_conf: "odofreebsd_rc.conf"
loader_conf: "odofreebsd_loader.conf"
cputype: "intel"
hwpstate: true

View File

@ -29,14 +29,14 @@
dest: /etc/rc.conf.d/power_profile
- name: Install packages
when: not hwpstate
when: hwpstate is defined and not hwpstate
package:
name:
- powerdxx
state: present
- name: Install service configuration
when: not hwpstate
when: hwpstate is defined and not hwpstate
copy:
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"

View File

@ -1,4 +0,0 @@
- name: restart ntpdate
service:
name: ntpdate
state: restarted

View File

@ -1,5 +1,4 @@
- name: Install Configuration
notify: restart ntpdate
copy:
src: "files/{{ item.src }}"
dest: "{{ item.dest }}"