Merge branch 'master' of ssh://gitlab.social.my-wan.de:22422/rene/ansible-pull

This commit is contained in:
rene
2022-02-18 15:30:01 +01:00
10 changed files with 61 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# Load distro-specific variables
- include_vars: "{{ ansible_distribution }}.yml"
tags: always
- block:
- debug:
msg: Debug
# import role webserver
- import_role:
name: webserver # required. The name of the role to be executed.
# install software
- name: jitsimeet | adjust limits
blockinfile:
path: "/etc/systemd/system.conf" # required. The file to modify. Before Ansible 2.3 this option was only usable as I(dest), I(destfile) and I(name).
block: | # not required. The text to insert inside the marker lines. If it is missing or an empty string, the block will be removed as if C(state) were specified to C(absent).
DefaultLimitNOFILE=65000
DefaultLimitNPROC=65000
DefaultTasksMax=65000
- name: jitsimeet | reload systemd
systemd:
daemon_reload: true # not required. Run daemon-reload before doing any other operations, to make sure systemd has read any changes. When set to C(yes), runs daemon-reload even if the module does not start or stop anything.
rescue:
- set_fact: task_failed=true

View File

@@ -0,0 +1 @@
jitsimeet_package: jitsi-meet

View File

@@ -0,0 +1,2 @@
webserver: true
nginx: true

View File

@@ -0,0 +1,4 @@
- name: webserver | nginx | installing nginx
package:
name: "{{ nginx_package }}"
state: latest

View File

@@ -0,0 +1,16 @@
# Load distro-specific variables
- include_vars: "{{ ansible_distribution }}.yml"
tags: always
- block:
- debug:
msg: Debug
# install software
- import_tasks: install_apache.yml
when: apache == true
- import_tasks: install_nginx.yml
when: nginx == true
- name: webserver | acme | install acme
package:
name: acme
state: latest

View File

@@ -0,0 +1,3 @@
apache_package: apache2
nginx_package: nginx
acme_package: acme