Skip to content

Commit

Permalink
fixes in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
mamullen13316 committed Jan 29, 2025
1 parent 24ea484 commit 79227af
Show file tree
Hide file tree
Showing 18 changed files with 29 additions and 23 deletions.
2 changes: 1 addition & 1 deletion plugins/modules/sfos_authentication_azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@
- ReadOnly
- Audit Admin
state: updated
delegate_to: localhost
delegate_to: localhost
'''

Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/sfos_authentication_edirectory.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
clientcertificate: Webadmin
basedn: o=sophos.com
state: updated
delegate_to: localhost
delegate_to: localhost
"""

Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/sfos_authentication_ldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
validateservercertificate: Enable
clientCertificate: ApplianceCertificate
state: updated
delegate_to: localhost
delegate_to: localhost
'''

Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/sfos_authentication_radius.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
nas_port_type: 0
accountingport: 4444
state: updated
delegate_to: localhost
delegate_to: localhost
'''

Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/sfos_authentication_tacacs.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
tac_port: '49'
sharedsecret: testtest
state: updated
delegate_to: localhost
delegate_to: localhost
'''

Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/sfos_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
minute: 30
encryption_password: backupencryptionpassword
state: updated
delegate_to: localhost
delegate_to: localhost
"""

Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/sfos_dns.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
dns2: 4.2.2.2
dns3: 1.1.1.1
state: updated
delegate_to: localhost
delegate_to: localhost
"""

Expand Down
1 change: 1 addition & 0 deletions plugins/modules/sfos_firewall_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
- HTTPS
- SSH
state: present
delegate_to: localhost
"""

RETURN = r"""
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/sfos_firewall_rulegroup.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@
dest_zones:
- WAN
state: present
delegate_to: localhost
"""

RETURN = r"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/sfos_ips.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
verify: false
enabled: true
state: updated
delegate_to: localhost
delegate_to: localhost
- name: Query IPS protection settings
sophos.sophos_firewall.sfos_ips:
Expand All @@ -56,7 +56,7 @@
port: 4444
verify: false
state: query
delegate_to: localhost
delegate_to: localhost
"""

RETURN = r"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/sfos_malware_protection.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
verify: false
antivirus_engine: Sophos
state: updated
delegate_to: localhost
delegate_to: localhost
- name: Query malware protection settings
sophos.sophos_firewall.sfos_malware_protection:
Expand All @@ -57,7 +57,7 @@
port: 4444
verify: false
state: query
delegate_to: localhost
delegate_to: localhost
"""

RETURN = r"""
Expand Down
2 changes: 2 additions & 0 deletions plugins/modules/sfos_service_acl_exception.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@
verify: false
name: TESTACLRULE
state: query
delegate_to: localhost
- name: Create Local service ACL exception rule
sophos.sophos_firewall.sfos_service_acl_exception:
Expand All @@ -114,6 +115,7 @@
- HTTPS
action: drop
state: present
delegate_to: localhost
"""

RETURN = r"""
Expand Down
4 changes: 2 additions & 2 deletions plugins/modules/sfos_snmp_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
location: AWS
contact_person: Network Operations
state: updated
delegate_to: localhost
delegate_to: localhost
- name: Query advanced threat protection settings
sophos.sophos_firewall.sfos_snmp_agent:
Expand All @@ -76,7 +76,7 @@
port: 4444
verify: false
state: query
delegate_to: localhost
delegate_to: localhost
"""

RETURN = r"""
Expand Down
10 changes: 5 additions & 5 deletions plugins/modules/sfos_snmp_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@
encryption_password: "{{ encryption_password }}"
authentication_algorithm: MD5
authentication_password: "{{ authentication_password }}"
state: present
delegate_to: localhost
state: present
delegate_to: localhost
- name: Query SNMPv3 User
sophos.sophos_firewall.sfos_snmp_user:
Expand All @@ -100,7 +100,7 @@
verify: false
name: snmpv3user
state: query
delegate_to: localhost
delegate_to: localhost
- name: Update SNMPv3 User
sophos.sophos_firewall.sfos_snmp_user:
Expand All @@ -116,7 +116,7 @@
encryption_password: "{{ encryption_password }}"
authentication_password: "{{ authentication_password }}"
state: present
delegate_to: localhost
delegate_to: localhost
- name: Remove SNMPv3 User
sophos.sophos_firewall.sfos_snmp_user:
Expand All @@ -128,7 +128,7 @@
enabled: true
name: snmpv3user
state: absent
delegate_to: localhost
delegate_to: localhost
"""

RETURN = r"""
Expand Down
8 changes: 4 additions & 4 deletions plugins/modules/sfos_syslog.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@
format: Device standard
default_logging: Enable
state: present
delegate_to: localhost
delegate_to: localhost
- name: Create syslog server, disable selected logs
sophos.sophos_firewall.sfos_syslog:
Expand All @@ -417,7 +417,7 @@
content_filtering:
ssl_tls: Disable
state: present
delegate_to: localhost
delegate_to: localhost
- name: Query syslog server
sophos.sophos_firewall.sfos_syslog:
Expand All @@ -428,7 +428,7 @@
verify: false
name: TestSyslog
state: query
delegate_to: localhost
delegate_to: localhost
- name: Remove syslog server
sophos.sophos_firewall.sfos_syslog:
Expand All @@ -439,7 +439,7 @@
verify: false
name: TestSyslog
state: absent
delegate_to: localhost
delegate_to: localhost
"""

RETURN = r"""
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/sfos_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
minute: 28
second: 59
state: updated
delegate_to: localhost
delegate_to: localhost
"""

Expand Down
1 change: 1 addition & 0 deletions plugins/modules/sfos_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@
group: Open Group
email: test.user@sophos.com
state: present
delegate_to: localhost
"""

RETURN = r"""
Expand Down
1 change: 1 addition & 0 deletions plugins/modules/sfos_zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@
verify: false
name: TESTZONE
state: absent
delegate_to: localhost
"""

RETURN = r"""
Expand Down

0 comments on commit 79227af

Please sign in to comment.