-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into support_freebsd
- Loading branch information
Showing
30 changed files
with
359 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
ldap: | ||
url: ldap://host.example.com | ||
anonymous_bind: false | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
--- | ||
# Logrotate configuration | ||
openvpn_log_dir: /var/log | ||
openvpn_log_file: openvpn.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,39 @@ | ||
--- | ||
- name: restart openvpn | ||
service: | ||
- name: Restart openvpn | ||
ansible.builtin.service: | ||
name: "{{ openvpn_service_name }}" | ||
state: restarted | ||
# Github Actions doesn't allow entrypoints, so PID 1 isn't an init system | ||
when: ansible_service_mgr != "tail" | ||
|
||
- name: restart iptables | ||
service: | ||
- name: Restart iptables | ||
ansible.builtin.service: | ||
name: iptables | ||
state: restarted | ||
|
||
- name: restart firewalld | ||
service: | ||
- name: Restart firewalld | ||
ansible.builtin.service: | ||
name: firewalld | ||
state: restarted | ||
|
||
- name: restart ufw | ||
service: | ||
- name: Restart ufw | ||
ansible.builtin.service: | ||
name: ufw | ||
state: restarted | ||
|
||
- name: save iptables rules (Debian/Ubuntu and CentOS/RHEL/Fedora) | ||
shell: "{{ iptables_save_command }}" # noqa command-instead-of-shell | ||
- name: Save iptables rules (Debian/Ubuntu and CentOS/RHEL/Fedora) | ||
ansible.builtin.shell: "{{ iptables_save_command }}" # noqa command-instead-of-shell could have shell redirection | ||
when: ansible_os_family == 'Debian' or ansible_os_family == 'RedHat' | ||
listen: "save iptables" | ||
changed_when: true # always save iptables rules | ||
|
||
- name: build and install policy | ||
command: "{{ item }}" | ||
- name: Build and install policy | ||
ansible.builtin.command: "{{ item }}" | ||
args: | ||
chdir: /var/lib/selinux | ||
with_items: | ||
- "checkmodule -M -m -o {{ openvpn_selinux_module }}.mod {{ openvpn_selinux_module }}.te" | ||
- "semodule_package -o {{ openvpn_selinux_module }}.pp -m {{ openvpn_selinux_module }}.mod" | ||
- "semodule -i {{ openvpn_selinux_module }}.pp" | ||
changed_when: true | ||
when: ansible_selinux.status == 'enabled' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.