Skip to content

Commit

Permalink
Use state present for proxy configuration
Browse files Browse the repository at this point in the history
Signed-off-by: Ondra Machacek <omachace@redhat.com>
  • Loading branch information
machacekondra committed Apr 15, 2024
1 parent 3c0567c commit 09f96b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions roles/system_settings/tasks/proxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
vcenter_validate_certs: "{{ system_settings_validate_certs | d(omit) }}"
servers: "{{ system_settings_noproxy }}"
when: "system_settings_noproxy is defined"
notify: Restart ntpd

- name: Configure the proxy configuration
vmware.vmware_rest.appliance_networking_proxy:
Expand All @@ -18,8 +17,7 @@
server: "{{ item.url | mandatory }}"
port: "{{ item.port | mandatory }}"
protocol: "{{ item.protocol | mandatory }}"
state: "{{ item.state | d(omit) }}"
state: "{{ 'set' if item.state == 'present' else item.state }}"
username: "{{ item.username | d(omit) }}"
password: "{{ item.password | d(omit) }}"
loop: "{{ system_settings_proxy }}"
notify: Restart ntpd

0 comments on commit 09f96b3

Please sign in to comment.