diff --git a/0Readme.md b/Readme.md similarity index 100% rename from 0Readme.md rename to Readme.md diff --git a/ansible_apache_formation/README.md b/ansible_apache_formation/README.md deleted file mode 100644 index 6093f71..0000000 --- a/ansible_apache_formation/README.md +++ /dev/null @@ -1,38 +0,0 @@ -Role Name -========= -apache_formation - -NOT FOR PRODUCTION USE - -This role has been designed for training purpose - -Requirements ------------- - -None - -Role Variables --------------- - -Dependencies ------------- - -None - -Example Playbook ----------------- - ---- -- hosts: test - roles: - - apache_formation - -License -------- - -BSD - -Author Information ------------------- - -Thomas Constans diff --git a/ansible_apache_formation/defaults/main.yml b/ansible_apache_formation/defaults/main.yml deleted file mode 100644 index ed97d53..0000000 --- a/ansible_apache_formation/defaults/main.yml +++ /dev/null @@ -1 +0,0 @@ ---- diff --git a/ansible_apache_formation/handlers/main.yml b/ansible_apache_formation/handlers/main.yml deleted file mode 100644 index 81a5908..0000000 --- a/ansible_apache_formation/handlers/main.yml +++ /dev/null @@ -1,4 +0,0 @@ -- name: reload httpd - service: - name: "{{ apache_service_name }}" - state: reloaded diff --git a/ansible_apache_formation/meta/main.yml b/ansible_apache_formation/meta/main.yml deleted file mode 100644 index 38015ad..0000000 --- a/ansible_apache_formation/meta/main.yml +++ /dev/null @@ -1,51 +0,0 @@ -galaxy_info: - role_name: apache_formation - author: Thomas Constans - description: Simple apache role set up for training purpose - company: www.opendoor.fr - - # If the issue tracker for your role is not on github, uncomment the - # next line and provide a value - # issue_tracker_url: http://example.com/issue/tracker - - # Some suggested licenses: - # - BSD (default) - # - MIT - # - GPLv2 - # - GPLv3 - # - Apache - # - CC-BY - license: GPLv2 - - min_ansible_version: 1.2 - - # If this a Container Enabled role, provide the minimum Ansible Container version. - # min_ansible_container_version: - - # Optionally specify the branch Galaxy will use when accessing the GitHub - # repo for this role. During role install, if no tags are available, - # Galaxy will use this branch. During import Galaxy will access files on - # this branch. If Travis integration is configured, only notifications for this - # branch will be accepted. Otherwise, in all cases, the repo's default branch - # (usually master) will be used. - #github_branch: - - # - # platforms is a list of platforms, and each platform has a name and a list of versions. - # - platforms: - - name: EL - versions: - - 7 - - galaxy_tags: [apache,training] - # List tags for your role here, one per line. A tag is a keyword that describes - # and categorizes the role. Users find roles by searching for tags. Be sure to - # remove the '[]' above, if you add tags to this list. - # - # NOTE: A tag is limited to a single word comprised of alphanumeric characters. - # Maximum 20 tags per role. - - dependencies: [] - # List your role dependencies here, one per line. Be sure to remove the '[]' above, - # if you add dependencies to this list. \ No newline at end of file diff --git a/ansible_apache_formation/tasks/apache.yml b/ansible_apache_formation/tasks/apache.yml deleted file mode 100644 index 7d15a0a..0000000 --- a/ansible_apache_formation/tasks/apache.yml +++ /dev/null @@ -1,57 +0,0 @@ ---- -- name: installation - package: - name: "{{ apache_package_name }}" - state: present - -- name: configuration - notify: reload httpd - template: - src: vhost.conf - dest: /etc/httpd/conf.d/vhost.conf - mode: 0640 - owner: root - group: apache - -- name: enable service - service: - name: "{{ apache_service_name }}" - enabled: yes - -- name: open firewall port - firewalld: - service: http - permanent: yes - immediate: yes - state: enabled - ignore_errors: yes - -- name: create documentroot - file: - name: "{{ apache_documentroot }}" - state: directory - -- name: create index file - template: - src: index.html - dest: "{{ apache_documentroot }}/index.html" - mode: 0644 - -- name: install python passlib package - package: - name: python-passlib - state: present - -- name: passwd file - htpasswd: - path: "/etc/httpd/passwd" - name: tom - password: "123Soleil" - mode: 0640 - owner: root - group: "apache" - -- name: start service - service: - name: "{{ apache_service_name }}" - state: restarted \ No newline at end of file diff --git a/ansible_apache_formation/tasks/main.yml b/ansible_apache_formation/tasks/main.yml deleted file mode 100644 index 239d2eb..0000000 --- a/ansible_apache_formation/tasks/main.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -- import_tasks: apache.yml - tags: httpd \ No newline at end of file diff --git a/ansible_apache_formation/templates/index.html b/ansible_apache_formation/templates/index.html deleted file mode 100644 index 675be45..0000000 --- a/ansible_apache_formation/templates/index.html +++ /dev/null @@ -1 +0,0 @@ -

Welcome aboard {{ ansible_hostname }}

\ No newline at end of file diff --git a/ansible_apache_formation/templates/vhost.conf b/ansible_apache_formation/templates/vhost.conf deleted file mode 100644 index 7a2633c..0000000 --- a/ansible_apache_formation/templates/vhost.conf +++ /dev/null @@ -1,24 +0,0 @@ - - ServerName {{ apache_server_name }} - ServerAlias www.{{ apache_server_name }} - ServerAlias {{ inventory_hostname }} - DocumentRoot /var/www/html/{{ apache_server_name }} - CustomLog /var/log/httpd/{{ apache_server_name }}_access.log combined - ErrorLog /var/log/httpd/{{ apache_server_name }}_error.log - - Options none - Allowoverride none - Require all denied - - - - Require all granted - - - Options indexes - AuthName "stop" - AuthType Basic - AuthUserFile /etc/httpd/passwd - require valid-user - - \ No newline at end of file diff --git a/ansible_apache_formation/tests/inventory b/ansible_apache_formation/tests/inventory deleted file mode 100644 index 878877b..0000000 --- a/ansible_apache_formation/tests/inventory +++ /dev/null @@ -1,2 +0,0 @@ -localhost - diff --git a/ansible_apache_formation/tests/test.yml b/ansible_apache_formation/tests/test.yml deleted file mode 100644 index 3af12d2..0000000 --- a/ansible_apache_formation/tests/test.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- hosts: centos - roles: - - tconstans.ansible_apache_formation \ No newline at end of file diff --git a/ansible_apache_formation/vars/main.yml b/ansible_apache_formation/vars/main.yml deleted file mode 100644 index 73b314f..0000000 --- a/ansible_apache_formation/vars/main.yml +++ /dev/null @@ -1 +0,0 @@ ---- \ No newline at end of file