-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from punktDe/task/debian-support
Debian support
- Loading branch information
Showing
8 changed files
with
58 additions
and
7 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 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,4 +1,4 @@ | ||
- name: Install GPG on Ubuntu | ||
- name: Install GPG on Ubuntu/Debian | ||
ansible.builtin.package: | ||
name: gpg | ||
|
||
|
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,5 +1,6 @@ | ||
--- | ||
- name: Create proserver user | ||
ansible.builtin.user: | ||
name: proserver | ||
home: /var/www | ||
shell: /bin/bash | ||
shell: "{{ which_bash.stdout }}" |
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 |
---|---|---|
@@ -0,0 +1,28 @@ | ||
- name: Make sure that the custom sshd configuration is included | ||
notify: | ||
- Restart sshd | ||
ansible.builtin.lineinfile: | ||
validate: "sshd -T -f %s" | ||
path: /etc/ssh/sshd_config | ||
line: "Include /etc/ssh/sshd_config.d/*" | ||
insertbefore: "BOF" | ||
|
||
- name: Create the config folder | ||
ansible.builtin.file: | ||
path: /etc/ssh/sshd_config.d | ||
state: directory | ||
owner: root | ||
mode: "0755" | ||
|
||
- name: Template the sshd configuration | ||
notify: | ||
- Restart sshd | ||
ansible.builtin.copy: | ||
validate: "sshd -T -f %s" | ||
dest: /etc/ssh/sshd_config.d/00-ansible.conf | ||
content: | | ||
{% for option, value in system.sshd.config.iteritems() %} | ||
{{ option }} {{ value }} | ||
{% endfor %} | ||
owner: root | ||
mode: "0644" |
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