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"
|
rc_conf: "odofreebsd_rc.conf"
|
||||||
loader_conf: "odofreebsd_loader.conf"
|
loader_conf: "odofreebsd_loader.conf"
|
||||||
cputype: "intel"
|
cputype: "intel"
|
||||||
|
hwpstate: true
|
||||||
|
@ -29,14 +29,14 @@
|
|||||||
dest: /etc/rc.conf.d/power_profile
|
dest: /etc/rc.conf.d/power_profile
|
||||||
|
|
||||||
- name: Install packages
|
- name: Install packages
|
||||||
when: not hwpstate
|
when: hwpstate is defined and not hwpstate
|
||||||
package:
|
package:
|
||||||
name:
|
name:
|
||||||
- powerdxx
|
- powerdxx
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Install service configuration
|
- name: Install service configuration
|
||||||
when: not hwpstate
|
when: hwpstate is defined and not hwpstate
|
||||||
copy:
|
copy:
|
||||||
src: "files/{{ item.src }}"
|
src: "files/{{ item.src }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
@ -1,4 +0,0 @@
|
|||||||
- name: restart ntpdate
|
|
||||||
service:
|
|
||||||
name: ntpdate
|
|
||||||
state: restarted
|
|
@ -1,5 +1,4 @@
|
|||||||
- name: Install Configuration
|
- name: Install Configuration
|
||||||
notify: restart ntpdate
|
|
||||||
copy:
|
copy:
|
||||||
src: "files/{{ item.src }}"
|
src: "files/{{ item.src }}"
|
||||||
dest: "{{ item.dest }}"
|
dest: "{{ item.dest }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user