-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
214 additions
and
124 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
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 |
---|---|---|
|
@@ -4,30 +4,31 @@ | |
state: reloaded | ||
|
||
- name: restart apache | ||
service: name=apache2 state=restarted | ||
systemd: | ||
name: apache2 | ||
state: restarted | ||
|
||
- name: reload nginx | ||
systemd: | ||
name: nginx | ||
state: reloaded | ||
|
||
- name: restart denyhosts | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jocelynj
Author
Member
|
||
service: name=denyhosts state=restarted | ||
|
||
- name: restart monit | ||
service: name=monit state=restarted | ||
systemd: | ||
name: monit | ||
state: restarted | ||
|
||
- name: generate locales | ||
command: /usr/sbin/locale-gen | ||
|
||
- name: detect sensors | ||
shell: /usr/sbin/sensors-detect < /dev/null | ||
|
||
- include: munin-node.yml | ||
- import_tasks: munin-node.yml | ||
|
||
- include: sysstat.yml | ||
- import_tasks: sysstat.yml | ||
|
||
- include: sysctl.yml | ||
- import_tasks: sysctl.yml | ||
|
||
- name: restart systemd-hostnamed | ||
systemd: | ||
|
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,2 +1,4 @@ | ||
- name: restart munin-node | ||
service: name=munin-node state=restarted | ||
systemd: | ||
name: munin-node | ||
state: restarted |
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,2 +1,4 @@ | ||
- name: restart sysstat | ||
service: name=sysstat state=restarted | ||
systemd: | ||
name: sysstat | ||
state: restarted |
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,23 +1,38 @@ | ||
- name: add apache proxy module | ||
file: src="/etc/apache2/mods-available/{{ item }}" dest="/etc/apache2/mods-enabled/{{ item }}" state=link | ||
file: | ||
src: "/etc/apache2/mods-available/{{ item }}" | ||
dest: "/etc/apache2/mods-enabled/{{ item }}" | ||
state: link | ||
notify: restart apache | ||
with_items: | ||
- proxy.conf | ||
- proxy_http.load | ||
- proxy.load | ||
|
||
- name: configure monit in apache | ||
copy: src="apache-monit" dest="/etc/apache2/sites-available/monit.conf" owner=root group=root mode=0644 | ||
copy: | ||
src: "apache-monit" | ||
dest: "/etc/apache2/sites-available/monit.conf" | ||
owner: root | ||
group: root | ||
mode: 0644 | ||
notify: restart apache | ||
|
||
- name: enable monit in apache | ||
file: src="/etc/apache2/sites-available/monit.conf" dest="/etc/apache2/sites-enabled/monit.conf" state=link | ||
file: | ||
src: "/etc/apache2/sites-available/monit.conf" | ||
dest: "/etc/apache2/sites-enabled/monit.conf" | ||
state: link | ||
notify: restart apache | ||
|
||
- name: remove /etc/apache2/sites-available/monit | ||
file: path="/etc/apache2/sites-available/monit" state=absent | ||
file: | ||
path: "/etc/apache2/sites-available/monit" | ||
state: absent | ||
notify: restart apache | ||
|
||
- name: remove /etc/apache2/sites-enabled/monit | ||
file: path="/etc/apache2/sites-enabled/monit" state=absent | ||
file: | ||
path: "/etc/apache2/sites-enabled/monit" | ||
state: absent | ||
notify: restart apache |
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,10 @@ | ||
- name: install ntp package | ||
apt: pkg=ntp | ||
apt: | ||
pkg: | ||
- ntp | ||
|
||
- name: launch ntp | ||
service: name=ntp state=started enabled=yes | ||
systemd: | ||
name: ntp | ||
state: started | ||
enabled: yes |
Oops, something went wrong.
Is it an intended suppression?