fix conditionals for hwpstate.
This commit is contained in:
parent
ece2ac4920
commit
c45e4cc3fa
@ -11,3 +11,4 @@ network_rc: "odofreebsd_network.conf"
|
||||
rc_conf: "odofreebsd_rc.conf"
|
||||
loader_conf: "odofreebsd_loader.conf"
|
||||
cputype: "intel"
|
||||
hwpstate: true
|
||||
|
@ -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 }}"
|
||||
|
@ -1,4 +0,0 @@
|
||||
- name: restart ntpdate
|
||||
service:
|
||||
name: ntpdate
|
||||
state: restarted
|
@ -1,5 +1,4 @@
|
||||
- name: Install Configuration
|
||||
notify: restart ntpdate
|
||||
copy:
|
||||
src: "files/{{ item.src }}"
|
||||
dest: "{{ item.dest }}"
|
||||
|
Loading…
x
Reference in New Issue
Block a user