Initial commit
This commit is contained in:
5
ansible_deploy_all.sh
Executable file
5
ansible_deploy_all.sh
Executable file
@@ -0,0 +1,5 @@
|
||||
#!bin/bash
|
||||
ansible-playbook -i inventory/Gsmc playbooks/esxi_stop.yml
|
||||
ansible-playbook -i inventory/Gsmc playbooks/esxi_try.yml
|
||||
sleep 30
|
||||
./ansible_deploy_nfs.sh
|
||||
2
ansible_deploy_nfs.sh
Executable file
2
ansible_deploy_nfs.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
ansible-playbook -i inventory/Gsmc playbooks/nfs_try.yml
|
||||
|
||||
4
group_vars/Esxi
Executable file
4
group_vars/Esxi
Executable file
@@ -0,0 +1,4 @@
|
||||
ansible_connection: ssh
|
||||
ansible_user: root
|
||||
ansible_password: GsmcGmv2Gmv*
|
||||
|
||||
3
group_vars/Gsmc
Executable file
3
group_vars/Gsmc
Executable file
@@ -0,0 +1,3 @@
|
||||
ansible_connection: ssh
|
||||
ansible_user: root
|
||||
ansible_password: gmv2gmv
|
||||
4
group_vars/NFS_try
Executable file
4
group_vars/NFS_try
Executable file
@@ -0,0 +1,4 @@
|
||||
ansible_connection: ssh
|
||||
ansible_user: root
|
||||
ansible_password: GsmcGmv2Gmv*
|
||||
|
||||
4
group_vars/POCP
Executable file
4
group_vars/POCP
Executable file
@@ -0,0 +1,4 @@
|
||||
ansible_connection: ssh
|
||||
ansible_user: root
|
||||
ansible_password: GsmcGmv2Gmv*
|
||||
|
||||
4
group_vars/Terraform
Executable file
4
group_vars/Terraform
Executable file
@@ -0,0 +1,4 @@
|
||||
ansible_connection: ssh
|
||||
ansible_user: root
|
||||
ansible_password: GsmcGmv2Gmv*
|
||||
|
||||
3
group_vars/clients
Executable file
3
group_vars/clients
Executable file
@@ -0,0 +1,3 @@
|
||||
ansible_connection: ssh
|
||||
ansible_user: root
|
||||
ansible_password: gmv2gmv
|
||||
3
group_vars/clients_nfs
Executable file
3
group_vars/clients_nfs
Executable file
@@ -0,0 +1,3 @@
|
||||
ansible_connection: ssh
|
||||
ansible_user: root
|
||||
ansible_password: gmv2gmv
|
||||
3
group_vars/ldap
Executable file
3
group_vars/ldap
Executable file
@@ -0,0 +1,3 @@
|
||||
ansible_connection: ssh
|
||||
ansible_user: root
|
||||
ansible_password: gmv2gmv
|
||||
3
group_vars/prueba
Executable file
3
group_vars/prueba
Executable file
@@ -0,0 +1,3 @@
|
||||
ansible_connection: ssh
|
||||
ansible_user: root
|
||||
ansible_password: gmv2gmv
|
||||
3
group_vars/server
Executable file
3
group_vars/server
Executable file
@@ -0,0 +1,3 @@
|
||||
ansible_connection: ssh
|
||||
ansible_user: root
|
||||
ansible_password: gmv2gmv
|
||||
3
group_vars/server_nfs
Executable file
3
group_vars/server_nfs
Executable file
@@ -0,0 +1,3 @@
|
||||
ansible_connection: ssh
|
||||
ansible_user: root
|
||||
ansible_password: GsmcGmv2Gmv*
|
||||
9
hosts/Gsmc
Executable file
9
hosts/Gsmc
Executable file
@@ -0,0 +1,9 @@
|
||||
[gsmc]
|
||||
172.17.22.170 hostname_suffix=gsmc1
|
||||
[gsmc:vars]
|
||||
ansible_connection=ssh
|
||||
ansible_user=root
|
||||
ansible_password=gmv2gmv
|
||||
preffix=gsmc.com
|
||||
[Esxi]
|
||||
ansible_ssh_transfer_method=scp
|
||||
51
inventory/Gsmc
Executable file
51
inventory/Gsmc
Executable file
@@ -0,0 +1,51 @@
|
||||
[gsmc]
|
||||
172.17.22.170 hostname_suffix=gsmc1
|
||||
172.17.22.171 hostname_suffix=gsmc2
|
||||
172.17.22.172 hostname_suffix=gsmc3
|
||||
172.17.22.173 hostname_suffix=gsmc4
|
||||
172.17.22.174 hostname_suffix=gsmc5
|
||||
172.17.22.175 hostname_suffix=gsmc6
|
||||
172.17.22.176 hostname_suffix=gsmc7
|
||||
172.17.22.177 hostname_suffix=gsmc8
|
||||
[Git_Server]
|
||||
172.17.22.175
|
||||
[Git_Clients]
|
||||
[IPA_server]
|
||||
172.17.22.174
|
||||
[IPA_server:vars]
|
||||
hostname=gsmc5.gsmc.com
|
||||
[IPA_clients]
|
||||
172.17.22.170
|
||||
172.17.22.172
|
||||
172.17.22.173
|
||||
172.17.22.175
|
||||
172.17.22.176
|
||||
172.17.22.177
|
||||
172.17.22.171
|
||||
[server_nfs]
|
||||
35.54.20.230
|
||||
[clients_nfs]
|
||||
35.54.20.9
|
||||
35.54.20.8
|
||||
35.54.20.11
|
||||
35.54.20.7
|
||||
35.54.20.2
|
||||
35.54.20.14
|
||||
[SVN_Prueba]
|
||||
172.17.22.170
|
||||
[Acronis_Server]
|
||||
172.17.22.175
|
||||
[Acronis_Clients]
|
||||
[Esxi]
|
||||
192.168.110.10
|
||||
[Terraform]
|
||||
35.54.0.230
|
||||
[POCP]
|
||||
35.54.20.9
|
||||
35.54.20.8
|
||||
35.54.20.11
|
||||
35.54.20.7
|
||||
35.54.20.2
|
||||
35.54.20.14
|
||||
[NFS_try]
|
||||
35.54.20.11
|
||||
5
playbooks/afick-install.yml
Executable file
5
playbooks/afick-install.yml
Executable file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: all
|
||||
roles:
|
||||
- NFS_mount
|
||||
- Afick_Install
|
||||
29
playbooks/configure_server_Gsmc.yml
Executable file
29
playbooks/configure_server_Gsmc.yml
Executable file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
- hosts: gsmc
|
||||
roles:
|
||||
- Configure_Hostname
|
||||
- hosts: server_nfs
|
||||
roles:
|
||||
- NFS-Server
|
||||
- hosts: clients_nfs
|
||||
roles:
|
||||
- NFS_mount
|
||||
- hosts: SVN_Server
|
||||
roles:
|
||||
- SVN
|
||||
- hosts: IPA_server
|
||||
roles:
|
||||
- IPA_server_install
|
||||
- hosts: IPA_clients
|
||||
roles:
|
||||
- IPA_clients_install
|
||||
- hosts: all
|
||||
roles:
|
||||
- Afick_Install
|
||||
- hosts: Acronis_Server
|
||||
roles:
|
||||
- Acronis_Server
|
||||
- hosts: Acronis_Clients
|
||||
roles:
|
||||
- Acronis_Clients
|
||||
|
||||
5
playbooks/esxi_stop.yml
Executable file
5
playbooks/esxi_stop.yml
Executable file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: Esxi
|
||||
roles:
|
||||
- esxi_stop
|
||||
- esxi_delete
|
||||
6
playbooks/esxi_try.yml
Executable file
6
playbooks/esxi_try.yml
Executable file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
- hosts: Esxi
|
||||
roles:
|
||||
- esxi_try
|
||||
|
||||
|
||||
5
playbooks/hostname-change.yml
Executable file
5
playbooks/hostname-change.yml
Executable file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: gsmc
|
||||
roles:
|
||||
- Configure_Hostname
|
||||
|
||||
7
playbooks/install_acronis.yml
Executable file
7
playbooks/install_acronis.yml
Executable file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
- hosts: Acronis_Server
|
||||
roles:
|
||||
- Acronis_Server
|
||||
- hosts: Acronis_Clients
|
||||
roles:
|
||||
- Acronis_Clients
|
||||
5
playbooks/nfs_try.yml
Executable file
5
playbooks/nfs_try.yml
Executable file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: clients_nfs
|
||||
roles:
|
||||
- NFS_mount
|
||||
|
||||
5
playbooks/prueba_server1.yml
Executable file
5
playbooks/prueba_server1.yml
Executable file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: all
|
||||
roles:
|
||||
- NFS_mount
|
||||
- LDAP_create
|
||||
5
playbooks/pruebas_carpetas.yml
Executable file
5
playbooks/pruebas_carpetas.yml
Executable file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: Gsmc
|
||||
roles:
|
||||
- LDAP_Create
|
||||
|
||||
3
playbooks/svn_prueba.yml
Executable file
3
playbooks/svn_prueba.yml
Executable file
@@ -0,0 +1,3 @@
|
||||
- hosts: SVN_Prueba
|
||||
roles:
|
||||
- SVN
|
||||
29
roles/Acronis_Clients/.travis.yml
Executable file
29
roles/Acronis_Clients/.travis.yml
Executable file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
language: python
|
||||
python: "2.7"
|
||||
|
||||
# Use the new container infrastructure
|
||||
sudo: false
|
||||
|
||||
# Install ansible
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- python-pip
|
||||
|
||||
install:
|
||||
# Install ansible
|
||||
- pip install ansible
|
||||
|
||||
# Check ansible version
|
||||
- ansible --version
|
||||
|
||||
# Create ansible.cfg with correct roles_path
|
||||
- printf '[defaults]\nroles_path=../' >ansible.cfg
|
||||
|
||||
script:
|
||||
# Basic role syntax check
|
||||
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
|
||||
|
||||
notifications:
|
||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||
38
roles/Acronis_Clients/README.md
Executable file
38
roles/Acronis_Clients/README.md
Executable file
@@ -0,0 +1,38 @@
|
||||
Role Name
|
||||
=========
|
||||
|
||||
A brief description of the role goes here.
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
|
||||
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
||||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
|
||||
|
||||
- hosts: servers
|
||||
roles:
|
||||
- { role: username.rolename, x: 42 }
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
BSD
|
||||
|
||||
Author Information
|
||||
------------------
|
||||
|
||||
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
|
||||
2
roles/Acronis_Clients/defaults/main.yml
Executable file
2
roles/Acronis_Clients/defaults/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# defaults file for Acronis
|
||||
2
roles/Acronis_Clients/handlers/main.yml
Executable file
2
roles/Acronis_Clients/handlers/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# handlers file for Acronis
|
||||
53
roles/Acronis_Clients/meta/main.yml
Executable file
53
roles/Acronis_Clients/meta/main.yml
Executable file
@@ -0,0 +1,53 @@
|
||||
galaxy_info:
|
||||
author: your name
|
||||
description: your role description
|
||||
company: your company (optional)
|
||||
|
||||
# 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
|
||||
|
||||
# Choose a valid license ID from https://spdx.org - some suggested licenses:
|
||||
# - BSD-3-Clause (default)
|
||||
# - MIT
|
||||
# - GPL-2.0-or-later
|
||||
# - GPL-3.0-only
|
||||
# - Apache-2.0
|
||||
# - CC-BY-4.0
|
||||
license: license (GPL-2.0-or-later, MIT, etc)
|
||||
|
||||
min_ansible_version: 2.9
|
||||
|
||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||
# min_ansible_container_version:
|
||||
|
||||
#
|
||||
# Provide a list of supported platforms, and for each platform a list of versions.
|
||||
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
|
||||
# To view available platforms and versions (or releases), visit:
|
||||
# https://galaxy.ansible.com/api/v1/platforms/
|
||||
#
|
||||
# platforms:
|
||||
# - name: Fedora
|
||||
# versions:
|
||||
# - all
|
||||
# - 25
|
||||
# - name: SomePlatform
|
||||
# versions:
|
||||
# - all
|
||||
# - 1.0
|
||||
# - 7
|
||||
# - 99.99
|
||||
|
||||
galaxy_tags: []
|
||||
# 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.
|
||||
|
||||
5
roles/Acronis_Clients/tasks/main.yml
Executable file
5
roles/Acronis_Clients/tasks/main.yml
Executable file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
# tasks file for Acronis
|
||||
- name: Install Acronis_client
|
||||
shell: 'cd /root/Desktop && ./AcronisBackup_12.5_64-bit.x86_64 -a -i BackupAndRecoveryAgent --ams "{{server_acronis}}" --login "{{user_acronis}}" --password "{{password_acronis}}"'
|
||||
|
||||
2
roles/Acronis_Clients/tests/inventory
Executable file
2
roles/Acronis_Clients/tests/inventory
Executable file
@@ -0,0 +1,2 @@
|
||||
localhost
|
||||
|
||||
5
roles/Acronis_Clients/tests/test.yml
Executable file
5
roles/Acronis_Clients/tests/test.yml
Executable file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
roles:
|
||||
- Acronis
|
||||
2
roles/Acronis_Clients/vars/main.yml
Executable file
2
roles/Acronis_Clients/vars/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# vars file for Acronis
|
||||
4
roles/Acronis_Clients/varsÂsain.yml
Executable file
4
roles/Acronis_Clients/varsÂsain.yml
Executable file
@@ -0,0 +1,4 @@
|
||||
---
|
||||
server_acronis: 172.17.22.175
|
||||
user_acronis: root
|
||||
password_acronis: gmv2gmv
|
||||
29
roles/Acronis_Server/.travis.yml
Executable file
29
roles/Acronis_Server/.travis.yml
Executable file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
language: python
|
||||
python: "2.7"
|
||||
|
||||
# Use the new container infrastructure
|
||||
sudo: false
|
||||
|
||||
# Install ansible
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- python-pip
|
||||
|
||||
install:
|
||||
# Install ansible
|
||||
- pip install ansible
|
||||
|
||||
# Check ansible version
|
||||
- ansible --version
|
||||
|
||||
# Create ansible.cfg with correct roles_path
|
||||
- printf '[defaults]\nroles_path=../' >ansible.cfg
|
||||
|
||||
script:
|
||||
# Basic role syntax check
|
||||
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
|
||||
|
||||
notifications:
|
||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||
38
roles/Acronis_Server/README.md
Executable file
38
roles/Acronis_Server/README.md
Executable file
@@ -0,0 +1,38 @@
|
||||
Role Name
|
||||
=========
|
||||
|
||||
A brief description of the role goes here.
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
|
||||
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
||||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
|
||||
|
||||
- hosts: servers
|
||||
roles:
|
||||
- { role: username.rolename, x: 42 }
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
BSD
|
||||
|
||||
Author Information
|
||||
------------------
|
||||
|
||||
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
|
||||
2
roles/Acronis_Server/defaults/main.yml
Executable file
2
roles/Acronis_Server/defaults/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# defaults file for Acronis
|
||||
2
roles/Acronis_Server/handlers/main.yml
Executable file
2
roles/Acronis_Server/handlers/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# handlers file for Acronis
|
||||
53
roles/Acronis_Server/meta/main.yml
Executable file
53
roles/Acronis_Server/meta/main.yml
Executable file
@@ -0,0 +1,53 @@
|
||||
galaxy_info:
|
||||
author: your name
|
||||
description: your role description
|
||||
company: your company (optional)
|
||||
|
||||
# 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
|
||||
|
||||
# Choose a valid license ID from https://spdx.org - some suggested licenses:
|
||||
# - BSD-3-Clause (default)
|
||||
# - MIT
|
||||
# - GPL-2.0-or-later
|
||||
# - GPL-3.0-only
|
||||
# - Apache-2.0
|
||||
# - CC-BY-4.0
|
||||
license: license (GPL-2.0-or-later, MIT, etc)
|
||||
|
||||
min_ansible_version: 2.9
|
||||
|
||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||
# min_ansible_container_version:
|
||||
|
||||
#
|
||||
# Provide a list of supported platforms, and for each platform a list of versions.
|
||||
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
|
||||
# To view available platforms and versions (or releases), visit:
|
||||
# https://galaxy.ansible.com/api/v1/platforms/
|
||||
#
|
||||
# platforms:
|
||||
# - name: Fedora
|
||||
# versions:
|
||||
# - all
|
||||
# - 25
|
||||
# - name: SomePlatform
|
||||
# versions:
|
||||
# - all
|
||||
# - 1.0
|
||||
# - 7
|
||||
# - 99.99
|
||||
|
||||
galaxy_tags: []
|
||||
# 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.
|
||||
|
||||
5
roles/Acronis_Server/tasks/main.yml
Executable file
5
roles/Acronis_Server/tasks/main.yml
Executable file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
# tasks file for Acronis
|
||||
- name: Install Acronis
|
||||
shell: 'cd /root/Desktop && ./AcronisBackup_12.5_64-bit.x86_64 --id=AcronisCentralizedManagementServer --web-server-port=9887 --ams-tcp-port=7780 -a'
|
||||
|
||||
2
roles/Acronis_Server/tests/inventory
Executable file
2
roles/Acronis_Server/tests/inventory
Executable file
@@ -0,0 +1,2 @@
|
||||
localhost
|
||||
|
||||
5
roles/Acronis_Server/tests/test.yml
Executable file
5
roles/Acronis_Server/tests/test.yml
Executable file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
roles:
|
||||
- Acronis
|
||||
2
roles/Acronis_Server/vars/main.yml
Executable file
2
roles/Acronis_Server/vars/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# vars file for Acronis
|
||||
29
roles/Afick_Install/.travis.yml
Executable file
29
roles/Afick_Install/.travis.yml
Executable file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
language: python
|
||||
python: "2.7"
|
||||
|
||||
# Use the new container infrastructure
|
||||
sudo: false
|
||||
|
||||
# Install ansible
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- python-pip
|
||||
|
||||
install:
|
||||
# Install ansible
|
||||
- pip install ansible
|
||||
|
||||
# Check ansible version
|
||||
- ansible --version
|
||||
|
||||
# Create ansible.cfg with correct roles_path
|
||||
- printf '[defaults]\nroles_path=../' >ansible.cfg
|
||||
|
||||
script:
|
||||
# Basic role syntax check
|
||||
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
|
||||
|
||||
notifications:
|
||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||
38
roles/Afick_Install/README.md
Executable file
38
roles/Afick_Install/README.md
Executable file
@@ -0,0 +1,38 @@
|
||||
Role Name
|
||||
=========
|
||||
|
||||
A brief description of the role goes here.
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
|
||||
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
||||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
|
||||
|
||||
- hosts: servers
|
||||
roles:
|
||||
- { role: username.rolename, x: 42 }
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
BSD
|
||||
|
||||
Author Information
|
||||
------------------
|
||||
|
||||
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
|
||||
2
roles/Afick_Install/defaults/main.yml
Executable file
2
roles/Afick_Install/defaults/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# defaults file for Afick_Install
|
||||
2
roles/Afick_Install/handlers/main.yml
Executable file
2
roles/Afick_Install/handlers/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# handlers file for Afick_Install
|
||||
53
roles/Afick_Install/meta/main.yml
Executable file
53
roles/Afick_Install/meta/main.yml
Executable file
@@ -0,0 +1,53 @@
|
||||
galaxy_info:
|
||||
author: your name
|
||||
description: your role description
|
||||
company: your company (optional)
|
||||
|
||||
# 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
|
||||
|
||||
# Choose a valid license ID from https://spdx.org - some suggested licenses:
|
||||
# - BSD-3-Clause (default)
|
||||
# - MIT
|
||||
# - GPL-2.0-or-later
|
||||
# - GPL-3.0-only
|
||||
# - Apache-2.0
|
||||
# - CC-BY-4.0
|
||||
license: license (GPL-2.0-or-later, MIT, etc)
|
||||
|
||||
min_ansible_version: 2.9
|
||||
|
||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||
# min_ansible_container_version:
|
||||
|
||||
#
|
||||
# Provide a list of supported platforms, and for each platform a list of versions.
|
||||
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
|
||||
# To view available platforms and versions (or releases), visit:
|
||||
# https://galaxy.ansible.com/api/v1/platforms/
|
||||
#
|
||||
# platforms:
|
||||
# - name: Fedora
|
||||
# versions:
|
||||
# - all
|
||||
# - 25
|
||||
# - name: SomePlatform
|
||||
# versions:
|
||||
# - all
|
||||
# - 1.0
|
||||
# - 7
|
||||
# - 99.99
|
||||
|
||||
galaxy_tags: []
|
||||
# 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.
|
||||
|
||||
16
roles/Afick_Install/tasks/main.yml
Executable file
16
roles/Afick_Install/tasks/main.yml
Executable file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
# tasks file for Afick_Install
|
||||
- name: Install afick
|
||||
yum:
|
||||
name: Afick
|
||||
state: present
|
||||
- name: Install Perl
|
||||
yum:
|
||||
name: perl
|
||||
state: present
|
||||
- name: Install Perl Digest
|
||||
yum:
|
||||
name: perl-Digest-MD5
|
||||
state: present
|
||||
- name: Check correct install Afick
|
||||
command: afick -V
|
||||
2
roles/Afick_Install/tests/inventory
Executable file
2
roles/Afick_Install/tests/inventory
Executable file
@@ -0,0 +1,2 @@
|
||||
localhost
|
||||
|
||||
5
roles/Afick_Install/tests/test.yml
Executable file
5
roles/Afick_Install/tests/test.yml
Executable file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
roles:
|
||||
- Afick_Install
|
||||
2
roles/Afick_Install/vars/main.yml
Executable file
2
roles/Afick_Install/vars/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# vars file for Afick_Install
|
||||
29
roles/Apache_Install/.travis.yml
Executable file
29
roles/Apache_Install/.travis.yml
Executable file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
language: python
|
||||
python: "2.7"
|
||||
|
||||
# Use the new container infrastructure
|
||||
sudo: false
|
||||
|
||||
# Install ansible
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- python-pip
|
||||
|
||||
install:
|
||||
# Install ansible
|
||||
- pip install ansible
|
||||
|
||||
# Check ansible version
|
||||
- ansible --version
|
||||
|
||||
# Create ansible.cfg with correct roles_path
|
||||
- printf '[defaults]\nroles_path=../' >ansible.cfg
|
||||
|
||||
script:
|
||||
# Basic role syntax check
|
||||
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
|
||||
|
||||
notifications:
|
||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||
38
roles/Apache_Install/README.md
Executable file
38
roles/Apache_Install/README.md
Executable file
@@ -0,0 +1,38 @@
|
||||
Role Name
|
||||
=========
|
||||
|
||||
A brief description of the role goes here.
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
|
||||
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
||||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
|
||||
|
||||
- hosts: servers
|
||||
roles:
|
||||
- { role: username.rolename, x: 42 }
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
BSD
|
||||
|
||||
Author Information
|
||||
------------------
|
||||
|
||||
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
|
||||
2
roles/Apache_Install/defaults/main.yml
Executable file
2
roles/Apache_Install/defaults/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# defaults file for Afick_Install
|
||||
2
roles/Apache_Install/handlers/main.yml
Executable file
2
roles/Apache_Install/handlers/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# handlers file for Afick_Install
|
||||
53
roles/Apache_Install/meta/main.yml
Executable file
53
roles/Apache_Install/meta/main.yml
Executable file
@@ -0,0 +1,53 @@
|
||||
galaxy_info:
|
||||
author: your name
|
||||
description: your role description
|
||||
company: your company (optional)
|
||||
|
||||
# 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
|
||||
|
||||
# Choose a valid license ID from https://spdx.org - some suggested licenses:
|
||||
# - BSD-3-Clause (default)
|
||||
# - MIT
|
||||
# - GPL-2.0-or-later
|
||||
# - GPL-3.0-only
|
||||
# - Apache-2.0
|
||||
# - CC-BY-4.0
|
||||
license: license (GPL-2.0-or-later, MIT, etc)
|
||||
|
||||
min_ansible_version: 2.9
|
||||
|
||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||
# min_ansible_container_version:
|
||||
|
||||
#
|
||||
# Provide a list of supported platforms, and for each platform a list of versions.
|
||||
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
|
||||
# To view available platforms and versions (or releases), visit:
|
||||
# https://galaxy.ansible.com/api/v1/platforms/
|
||||
#
|
||||
# platforms:
|
||||
# - name: Fedora
|
||||
# versions:
|
||||
# - all
|
||||
# - 25
|
||||
# - name: SomePlatform
|
||||
# versions:
|
||||
# - all
|
||||
# - 1.0
|
||||
# - 7
|
||||
# - 99.99
|
||||
|
||||
galaxy_tags: []
|
||||
# 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.
|
||||
|
||||
10
roles/Apache_Install/tasks/main.yml
Executable file
10
roles/Apache_Install/tasks/main.yml
Executable file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
# tasks file for Apache_Install
|
||||
- name: Install Httpd
|
||||
yum:
|
||||
name: httpd
|
||||
state: present
|
||||
- name: Start Httpd
|
||||
systemd:
|
||||
state: started
|
||||
name: httpd
|
||||
2
roles/Apache_Install/tests/inventory
Executable file
2
roles/Apache_Install/tests/inventory
Executable file
@@ -0,0 +1,2 @@
|
||||
localhost
|
||||
|
||||
5
roles/Apache_Install/tests/test.yml
Executable file
5
roles/Apache_Install/tests/test.yml
Executable file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
roles:
|
||||
- Afick_Install
|
||||
2
roles/Apache_Install/vars/main.yml
Executable file
2
roles/Apache_Install/vars/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# vars file for Afick_Install
|
||||
29
roles/Asterix_Install/.travis.yml
Executable file
29
roles/Asterix_Install/.travis.yml
Executable file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
language: python
|
||||
python: "2.7"
|
||||
|
||||
# Use the new container infrastructure
|
||||
sudo: false
|
||||
|
||||
# Install ansible
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- python-pip
|
||||
|
||||
install:
|
||||
# Install ansible
|
||||
- pip install ansible
|
||||
|
||||
# Check ansible version
|
||||
- ansible --version
|
||||
|
||||
# Create ansible.cfg with correct roles_path
|
||||
- printf '[defaults]\nroles_path=../' >ansible.cfg
|
||||
|
||||
script:
|
||||
# Basic role syntax check
|
||||
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
|
||||
|
||||
notifications:
|
||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||
38
roles/Asterix_Install/README.md
Executable file
38
roles/Asterix_Install/README.md
Executable file
@@ -0,0 +1,38 @@
|
||||
Role Name
|
||||
=========
|
||||
|
||||
A brief description of the role goes here.
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
|
||||
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
||||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
|
||||
|
||||
- hosts: servers
|
||||
roles:
|
||||
- { role: username.rolename, x: 42 }
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
BSD
|
||||
|
||||
Author Information
|
||||
------------------
|
||||
|
||||
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
|
||||
2
roles/Asterix_Install/defaults/main.yml
Executable file
2
roles/Asterix_Install/defaults/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# defaults file for NFS-Server
|
||||
9
roles/Asterix_Install/files/media.repo
Executable file
9
roles/Asterix_Install/files/media.repo
Executable file
@@ -0,0 +1,9 @@
|
||||
[RHEL7.7]
|
||||
name=Red Hat Enterprise Linux 7.7
|
||||
mediaid=1563892373.442998
|
||||
metadata_expire=-1
|
||||
gpgcheck=1
|
||||
cost=500
|
||||
enabled=1
|
||||
baseurl=file:///repo/
|
||||
gpgkey=fille:///etc/pki/rpm-gpg/RPM-GPGKEY-redhat-release
|
||||
2
roles/Asterix_Install/handlers/main.yml
Executable file
2
roles/Asterix_Install/handlers/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# handlers file for NFS-Server
|
||||
53
roles/Asterix_Install/meta/main.yml
Executable file
53
roles/Asterix_Install/meta/main.yml
Executable file
@@ -0,0 +1,53 @@
|
||||
galaxy_info:
|
||||
author: your name
|
||||
description: your role description
|
||||
company: your company (optional)
|
||||
|
||||
# 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
|
||||
|
||||
# Choose a valid license ID from https://spdx.org - some suggested licenses:
|
||||
# - BSD-3-Clause (default)
|
||||
# - MIT
|
||||
# - GPL-2.0-or-later
|
||||
# - GPL-3.0-only
|
||||
# - Apache-2.0
|
||||
# - CC-BY-4.0
|
||||
license: license (GPL-2.0-or-later, MIT, etc)
|
||||
|
||||
min_ansible_version: 2.9
|
||||
|
||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||
# min_ansible_container_version:
|
||||
|
||||
#
|
||||
# Provide a list of supported platforms, and for each platform a list of versions.
|
||||
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
|
||||
# To view available platforms and versions (or releases), visit:
|
||||
# https://galaxy.ansible.com/api/v1/platforms/
|
||||
#
|
||||
# platforms:
|
||||
# - name: Fedora
|
||||
# versions:
|
||||
# - all
|
||||
# - 25
|
||||
# - name: SomePlatform
|
||||
# versions:
|
||||
# - all
|
||||
# - 1.0
|
||||
# - 7
|
||||
# - 99.99
|
||||
|
||||
galaxy_tags: []
|
||||
# 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.
|
||||
|
||||
65
roles/Asterix_Install/tasks/main.yml
Executable file
65
roles/Asterix_Install/tasks/main.yml
Executable file
@@ -0,0 +1,65 @@
|
||||
---
|
||||
# tasks file for Asterix_Install
|
||||
- name: Change selinux
|
||||
shell: sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config && setenforce 0
|
||||
- name: Install Dependencies
|
||||
yum:
|
||||
name:
|
||||
- epel-release
|
||||
- dmidecode
|
||||
- gcc-c++
|
||||
- ncurses-devel
|
||||
- libxml2-devel
|
||||
- make
|
||||
- wget
|
||||
- openssl-devel
|
||||
- newt-devel
|
||||
- kernel-devel
|
||||
- sqlite-devel
|
||||
- libuuid-devel
|
||||
- gtk2-devel
|
||||
- jansson-devel
|
||||
- binutils-devel
|
||||
- libedit
|
||||
- libedit-devel
|
||||
state: present
|
||||
- name: Copy Libraries and Asterix
|
||||
copy:
|
||||
src: files/*.tar*
|
||||
dest: /opt
|
||||
- name: Create directory to copy Asterix
|
||||
shell: "mkdir /opt/asterix"
|
||||
- name: Extract Asterix
|
||||
unarchive:
|
||||
src: /opt/asterisk-16-current.tar.gz
|
||||
dest: /opt/asterix
|
||||
- name: Extract Dependencies
|
||||
unarchive:
|
||||
src: /opt/pjproject-2.9.tar
|
||||
dest: /opt/asterix
|
||||
- name: Install Library for asterix
|
||||
make:
|
||||
chdir: /opt/pjproject-2.9
|
||||
target: configure
|
||||
params:
|
||||
CFLAGS: "-DNDEBUG -DPJ_HAS_IPV6=1"
|
||||
prefix: /usr
|
||||
libdir: /usr/lib64
|
||||
enable-shared:
|
||||
disable-video:
|
||||
disable-sound:
|
||||
disable-opencore-amr:
|
||||
- name: Install Asterix
|
||||
make:
|
||||
chdir: /opt/asterisk-16.9.0
|
||||
target: configure
|
||||
params:
|
||||
libdir: /usr/lib64
|
||||
with-jansson-bundled:
|
||||
- name: Config FW
|
||||
firewalld:
|
||||
port: 5060
|
||||
permanent: yes
|
||||
state: enabled
|
||||
- name: Firewall reload
|
||||
shell: firewall-cmd --reload
|
||||
2
roles/Asterix_Install/tests/inventory
Executable file
2
roles/Asterix_Install/tests/inventory
Executable file
@@ -0,0 +1,2 @@
|
||||
localhost
|
||||
|
||||
5
roles/Asterix_Install/tests/test.yml
Executable file
5
roles/Asterix_Install/tests/test.yml
Executable file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
roles:
|
||||
- NFS-Server
|
||||
2
roles/Asterix_Install/vars/main.yml
Executable file
2
roles/Asterix_Install/vars/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# vars file for NFS-Server
|
||||
29
roles/Configure_Hostname/.travis.yml
Executable file
29
roles/Configure_Hostname/.travis.yml
Executable file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
language: python
|
||||
python: "2.7"
|
||||
|
||||
# Use the new container infrastructure
|
||||
sudo: false
|
||||
|
||||
# Install ansible
|
||||
addons:
|
||||
apt:
|
||||
packages:
|
||||
- python-pip
|
||||
|
||||
install:
|
||||
# Install ansible
|
||||
- pip install ansible
|
||||
|
||||
# Check ansible version
|
||||
- ansible --version
|
||||
|
||||
# Create ansible.cfg with correct roles_path
|
||||
- printf '[defaults]\nroles_path=../' >ansible.cfg
|
||||
|
||||
script:
|
||||
# Basic role syntax check
|
||||
- ansible-playbook tests/test.yml -i tests/inventory --syntax-check
|
||||
|
||||
notifications:
|
||||
webhooks: https://galaxy.ansible.com/api/v1/notifications/
|
||||
38
roles/Configure_Hostname/README.md
Executable file
38
roles/Configure_Hostname/README.md
Executable file
@@ -0,0 +1,38 @@
|
||||
Role Name
|
||||
=========
|
||||
|
||||
A brief description of the role goes here.
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
|
||||
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
||||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
|
||||
|
||||
- hosts: servers
|
||||
roles:
|
||||
- { role: username.rolename, x: 42 }
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
BSD
|
||||
|
||||
Author Information
|
||||
------------------
|
||||
|
||||
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
|
||||
2
roles/Configure_Hostname/defaults/main.yml
Executable file
2
roles/Configure_Hostname/defaults/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# defaults file for Configure_Hostname
|
||||
2
roles/Configure_Hostname/handlers/main.yml
Executable file
2
roles/Configure_Hostname/handlers/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# handlers file for Configure_Hostname
|
||||
53
roles/Configure_Hostname/meta/main.yml
Executable file
53
roles/Configure_Hostname/meta/main.yml
Executable file
@@ -0,0 +1,53 @@
|
||||
galaxy_info:
|
||||
author: your name
|
||||
description: your role description
|
||||
company: your company (optional)
|
||||
|
||||
# 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
|
||||
|
||||
# Choose a valid license ID from https://spdx.org - some suggested licenses:
|
||||
# - BSD-3-Clause (default)
|
||||
# - MIT
|
||||
# - GPL-2.0-or-later
|
||||
# - GPL-3.0-only
|
||||
# - Apache-2.0
|
||||
# - CC-BY-4.0
|
||||
license: license (GPL-2.0-or-later, MIT, etc)
|
||||
|
||||
min_ansible_version: 2.9
|
||||
|
||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||
# min_ansible_container_version:
|
||||
|
||||
#
|
||||
# Provide a list of supported platforms, and for each platform a list of versions.
|
||||
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
|
||||
# To view available platforms and versions (or releases), visit:
|
||||
# https://galaxy.ansible.com/api/v1/platforms/
|
||||
#
|
||||
# platforms:
|
||||
# - name: Fedora
|
||||
# versions:
|
||||
# - all
|
||||
# - 25
|
||||
# - name: SomePlatform
|
||||
# versions:
|
||||
# - all
|
||||
# - 1.0
|
||||
# - 7
|
||||
# - 99.99
|
||||
|
||||
galaxy_tags: []
|
||||
# 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.
|
||||
|
||||
15
roles/Configure_Hostname/tasks/main.yml
Executable file
15
roles/Configure_Hostname/tasks/main.yml
Executable file
@@ -0,0 +1,15 @@
|
||||
---
|
||||
# tasks file for Configure_Hostname
|
||||
- name: Configure Hostname
|
||||
shell: hostnamectl set-hostname "{{hostname_suffix}}"."{{suffix}}"
|
||||
- name: Insert Hosts
|
||||
blockinfile:
|
||||
path: /etc/hosts
|
||||
block: |
|
||||
172.17.22.174 gsmc5.gsmc.com
|
||||
- name: Insert resolv
|
||||
replace:
|
||||
path: /etc/resolv.conf
|
||||
regexp: '^gmv.es'
|
||||
replace: 'gsmc.com'
|
||||
|
||||
2
roles/Configure_Hostname/tests/inventory
Executable file
2
roles/Configure_Hostname/tests/inventory
Executable file
@@ -0,0 +1,2 @@
|
||||
localhost
|
||||
|
||||
5
roles/Configure_Hostname/tests/test.yml
Executable file
5
roles/Configure_Hostname/tests/test.yml
Executable file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
roles:
|
||||
- Configure_Hostname
|
||||
3
roles/Configure_Hostname/vars/main.yml
Executable file
3
roles/Configure_Hostname/vars/main.yml
Executable file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
# vars file for Configure_Hostname
|
||||
suffix: gsmc.com
|
||||
38
roles/Git_Repo/README.md
Executable file
38
roles/Git_Repo/README.md
Executable file
@@ -0,0 +1,38 @@
|
||||
Role Name
|
||||
=========
|
||||
|
||||
A brief description of the role goes here.
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
|
||||
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
||||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
|
||||
|
||||
- hosts: servers
|
||||
roles:
|
||||
- { role: username.rolename, x: 42 }
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
BSD
|
||||
|
||||
Author Information
|
||||
------------------
|
||||
|
||||
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
|
||||
2
roles/Git_Repo/defaults/main.yml
Executable file
2
roles/Git_Repo/defaults/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# defaults file for NFS_mount
|
||||
9
roles/Git_Repo/files/media.repo
Executable file
9
roles/Git_Repo/files/media.repo
Executable file
@@ -0,0 +1,9 @@
|
||||
[RHEL7.7]
|
||||
name=DVD for Red Hat Enterprise Linux 7.7 Server
|
||||
mediaid=1359576196.686790
|
||||
metadata_expire=-1
|
||||
gpgcheck=1
|
||||
cost=500
|
||||
enabled=1
|
||||
baseurl=file:///repo/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||
8
roles/Git_Repo/files/redhat.repo
Executable file
8
roles/Git_Repo/files/redhat.repo
Executable file
@@ -0,0 +1,8 @@
|
||||
[InstallMedia]
|
||||
name=Red Hat Enterprise Linux 7.7
|
||||
mediaid=1563892373.442998
|
||||
metadata_expire=-1
|
||||
gpgcheck=0
|
||||
cost=500
|
||||
baseurl=file:///repo/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||
2
roles/Git_Repo/handlers/main.yml
Executable file
2
roles/Git_Repo/handlers/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# handlers file for NFS_mount
|
||||
53
roles/Git_Repo/meta/main.yml
Executable file
53
roles/Git_Repo/meta/main.yml
Executable file
@@ -0,0 +1,53 @@
|
||||
galaxy_info:
|
||||
author: your name
|
||||
description: your role description
|
||||
company: your company (optional)
|
||||
|
||||
# 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
|
||||
|
||||
# Choose a valid license ID from https://spdx.org - some suggested licenses:
|
||||
# - BSD-3-Clause (default)
|
||||
# - MIT
|
||||
# - GPL-2.0-or-later
|
||||
# - GPL-3.0-only
|
||||
# - Apache-2.0
|
||||
# - CC-BY-4.0
|
||||
license: license (GPL-2.0-or-later, MIT, etc)
|
||||
|
||||
min_ansible_version: 2.9
|
||||
|
||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||
# min_ansible_container_version:
|
||||
|
||||
#
|
||||
# Provide a list of supported platforms, and for each platform a list of versions.
|
||||
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
|
||||
# To view available platforms and versions (or releases), visit:
|
||||
# https://galaxy.ansible.com/api/v1/platforms/
|
||||
#
|
||||
# platforms:
|
||||
# - name: Fedora
|
||||
# versions:
|
||||
# - all
|
||||
# - 25
|
||||
# - name: SomePlatform
|
||||
# versions:
|
||||
# - all
|
||||
# - 1.0
|
||||
# - 7
|
||||
# - 99.99
|
||||
|
||||
galaxy_tags: []
|
||||
# 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.
|
||||
|
||||
7
roles/Git_Repo/tasks/main.yml
Executable file
7
roles/Git_Repo/tasks/main.yml
Executable file
@@ -0,0 +1,7 @@
|
||||
---
|
||||
# tasks file for Git_Repo
|
||||
- name: Install GIT
|
||||
shell: "yum install git"
|
||||
- name: Init git Repo
|
||||
shell: 'mkdir /repodata && cd /repodata && git init --bare'
|
||||
|
||||
2
roles/Git_Repo/tests/inventory
Executable file
2
roles/Git_Repo/tests/inventory
Executable file
@@ -0,0 +1,2 @@
|
||||
localhost
|
||||
|
||||
5
roles/Git_Repo/tests/test.yml
Executable file
5
roles/Git_Repo/tests/test.yml
Executable file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
roles:
|
||||
- NFS_mount
|
||||
2
roles/Git_Repo/vars/main.yml
Executable file
2
roles/Git_Repo/vars/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# vars file for NFS_mount
|
||||
38
roles/Git_client/README.md
Executable file
38
roles/Git_client/README.md
Executable file
@@ -0,0 +1,38 @@
|
||||
Role Name
|
||||
=========
|
||||
|
||||
A brief description of the role goes here.
|
||||
|
||||
Requirements
|
||||
------------
|
||||
|
||||
Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required.
|
||||
|
||||
Role Variables
|
||||
--------------
|
||||
|
||||
A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well.
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
||||
A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles.
|
||||
|
||||
Example Playbook
|
||||
----------------
|
||||
|
||||
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
|
||||
|
||||
- hosts: servers
|
||||
roles:
|
||||
- { role: username.rolename, x: 42 }
|
||||
|
||||
License
|
||||
-------
|
||||
|
||||
BSD
|
||||
|
||||
Author Information
|
||||
------------------
|
||||
|
||||
An optional section for the role authors to include contact information, or a website (HTML is not allowed).
|
||||
2
roles/Git_client/defaults/main.yml
Executable file
2
roles/Git_client/defaults/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# defaults file for NFS_mount
|
||||
9
roles/Git_client/files/media.repo
Executable file
9
roles/Git_client/files/media.repo
Executable file
@@ -0,0 +1,9 @@
|
||||
[RHEL7.7]
|
||||
name=DVD for Red Hat Enterprise Linux 7.7 Server
|
||||
mediaid=1359576196.686790
|
||||
metadata_expire=-1
|
||||
gpgcheck=1
|
||||
cost=500
|
||||
enabled=1
|
||||
baseurl=file:///repo/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||
8
roles/Git_client/files/redhat.repo
Executable file
8
roles/Git_client/files/redhat.repo
Executable file
@@ -0,0 +1,8 @@
|
||||
[InstallMedia]
|
||||
name=Red Hat Enterprise Linux 7.7
|
||||
mediaid=1563892373.442998
|
||||
metadata_expire=-1
|
||||
gpgcheck=0
|
||||
cost=500
|
||||
baseurl=file:///repo/
|
||||
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
|
||||
2
roles/Git_client/handlers/main.yml
Executable file
2
roles/Git_client/handlers/main.yml
Executable file
@@ -0,0 +1,2 @@
|
||||
---
|
||||
# handlers file for NFS_mount
|
||||
53
roles/Git_client/meta/main.yml
Executable file
53
roles/Git_client/meta/main.yml
Executable file
@@ -0,0 +1,53 @@
|
||||
galaxy_info:
|
||||
author: your name
|
||||
description: your role description
|
||||
company: your company (optional)
|
||||
|
||||
# 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
|
||||
|
||||
# Choose a valid license ID from https://spdx.org - some suggested licenses:
|
||||
# - BSD-3-Clause (default)
|
||||
# - MIT
|
||||
# - GPL-2.0-or-later
|
||||
# - GPL-3.0-only
|
||||
# - Apache-2.0
|
||||
# - CC-BY-4.0
|
||||
license: license (GPL-2.0-or-later, MIT, etc)
|
||||
|
||||
min_ansible_version: 2.9
|
||||
|
||||
# If this a Container Enabled role, provide the minimum Ansible Container version.
|
||||
# min_ansible_container_version:
|
||||
|
||||
#
|
||||
# Provide a list of supported platforms, and for each platform a list of versions.
|
||||
# If you don't wish to enumerate all versions for a particular platform, use 'all'.
|
||||
# To view available platforms and versions (or releases), visit:
|
||||
# https://galaxy.ansible.com/api/v1/platforms/
|
||||
#
|
||||
# platforms:
|
||||
# - name: Fedora
|
||||
# versions:
|
||||
# - all
|
||||
# - 25
|
||||
# - name: SomePlatform
|
||||
# versions:
|
||||
# - all
|
||||
# - 1.0
|
||||
# - 7
|
||||
# - 99.99
|
||||
|
||||
galaxy_tags: []
|
||||
# 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.
|
||||
|
||||
8
roles/Git_client/tasks/main.yml
Executable file
8
roles/Git_client/tasks/main.yml
Executable file
@@ -0,0 +1,8 @@
|
||||
---
|
||||
# tasks file for Git_client
|
||||
- name: Install GIT
|
||||
shell: "yum install git"
|
||||
- name: Init git Repo
|
||||
shell: 'mkdir /repodata && git clone [[Server_IP]]:/repodata /repodata'
|
||||
|
||||
|
||||
2
roles/Git_client/tests/inventory
Executable file
2
roles/Git_client/tests/inventory
Executable file
@@ -0,0 +1,2 @@
|
||||
localhost
|
||||
|
||||
5
roles/Git_client/tests/test.yml
Executable file
5
roles/Git_client/tests/test.yml
Executable file
@@ -0,0 +1,5 @@
|
||||
---
|
||||
- hosts: localhost
|
||||
remote_user: root
|
||||
roles:
|
||||
- NFS_mount
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user