-
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.
* ansible-lint: project-account: Fix lint issues common: Fix lint on jinja computations common: Add mode on file creations common: Fix lint no-free-form Replace include by include_tasks/import_tasks
- Loading branch information
Showing
32 changed files
with
211 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 |
---|---|---|
@@ -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.