Web server playbook.
This commit is contained in:
parent
080356bfa4
commit
d1bc338ef9
2 changed files with 34 additions and 5 deletions
29
fvs-www-server.yml
Normal file
29
fvs-www-server.yml
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
## This playbook deploys a FvS web server machine.
|
||||||
|
---
|
||||||
|
- name: apply configuration to the web server
|
||||||
|
hosts: all
|
||||||
|
remote_user: ansible
|
||||||
|
become: yes
|
||||||
|
vars:
|
||||||
|
extra_pkgs:
|
||||||
|
- vim
|
||||||
|
- apache2
|
||||||
|
- python3-flask
|
||||||
|
|
||||||
|
extra_pkgs_bpo: [ ] # [ libreoffice ]
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- up2date-debian
|
||||||
|
- fvs-sssd
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: enable pam_mkhomedir.so
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/pam.d/common-session
|
||||||
|
line: "session optional pam_mkhomedir.so umask=0026"
|
||||||
|
insertbefore: "session optional pam_mount.so"
|
||||||
|
|
||||||
|
- name: enable apache mod userdir
|
||||||
|
apache2_module:
|
||||||
|
state: present
|
||||||
|
name: userdir
|
|
@ -4,11 +4,11 @@
|
||||||
dest: /etc/firefox-esr/firefox-esr.js
|
dest: /etc/firefox-esr/firefox-esr.js
|
||||||
line: pref("browser.startup.homepage", "https://www.startpage.com");
|
line: pref("browser.startup.homepage", "https://www.startpage.com");
|
||||||
|
|
||||||
- name: set capabilities (wireshark)
|
#- name: set capabilities (wireshark)
|
||||||
capabilities:
|
#capabilities:
|
||||||
path: /usr/bin/dumpcap
|
#path: /usr/bin/dumpcap
|
||||||
capability: cap_net_raw,cap_net_admin+eip
|
#capability: cap_net_raw,cap_net_admin+eip
|
||||||
state: present
|
#state: present
|
||||||
|
|
||||||
|
|
||||||
############## extra data partition ###############
|
############## extra data partition ###############
|
||||||
|
|
Loading…
Add table
Reference in a new issue