Initial commit

This commit is contained in:
2020-08-18 07:42:39 +02:00
commit 7ba09982cd
219 changed files with 3277 additions and 0 deletions

5
ansible_deploy_all.sh Executable file
View 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
View File

@@ -0,0 +1,2 @@
ansible-playbook -i inventory/Gsmc playbooks/nfs_try.yml

4
group_vars/Esxi Executable file
View File

@@ -0,0 +1,4 @@
ansible_connection: ssh
ansible_user: root
ansible_password: GsmcGmv2Gmv*

3
group_vars/Gsmc Executable file
View File

@@ -0,0 +1,3 @@
ansible_connection: ssh
ansible_user: root
ansible_password: gmv2gmv

4
group_vars/NFS_try Executable file
View File

@@ -0,0 +1,4 @@
ansible_connection: ssh
ansible_user: root
ansible_password: GsmcGmv2Gmv*

4
group_vars/POCP Executable file
View File

@@ -0,0 +1,4 @@
ansible_connection: ssh
ansible_user: root
ansible_password: GsmcGmv2Gmv*

4
group_vars/Terraform Executable file
View File

@@ -0,0 +1,4 @@
ansible_connection: ssh
ansible_user: root
ansible_password: GsmcGmv2Gmv*

3
group_vars/clients Executable file
View File

@@ -0,0 +1,3 @@
ansible_connection: ssh
ansible_user: root
ansible_password: gmv2gmv

3
group_vars/clients_nfs Executable file
View File

@@ -0,0 +1,3 @@
ansible_connection: ssh
ansible_user: root
ansible_password: gmv2gmv

3
group_vars/ldap Executable file
View File

@@ -0,0 +1,3 @@
ansible_connection: ssh
ansible_user: root
ansible_password: gmv2gmv

3
group_vars/prueba Executable file
View File

@@ -0,0 +1,3 @@
ansible_connection: ssh
ansible_user: root
ansible_password: gmv2gmv

3
group_vars/server Executable file
View File

@@ -0,0 +1,3 @@
ansible_connection: ssh
ansible_user: root
ansible_password: gmv2gmv

3
group_vars/server_nfs Executable file
View File

@@ -0,0 +1,3 @@
ansible_connection: ssh
ansible_user: root
ansible_password: GsmcGmv2Gmv*

9
hosts/Gsmc Executable file
View 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
View 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
View File

@@ -0,0 +1,5 @@
---
- hosts: all
roles:
- NFS_mount
- Afick_Install

View 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
View File

@@ -0,0 +1,5 @@
---
- hosts: Esxi
roles:
- esxi_stop
- esxi_delete

6
playbooks/esxi_try.yml Executable file
View File

@@ -0,0 +1,6 @@
---
- hosts: Esxi
roles:
- esxi_try

5
playbooks/hostname-change.yml Executable file
View File

@@ -0,0 +1,5 @@
---
- hosts: gsmc
roles:
- Configure_Hostname

7
playbooks/install_acronis.yml Executable file
View File

@@ -0,0 +1,7 @@
---
- hosts: Acronis_Server
roles:
- Acronis_Server
- hosts: Acronis_Clients
roles:
- Acronis_Clients

5
playbooks/nfs_try.yml Executable file
View File

@@ -0,0 +1,5 @@
---
- hosts: clients_nfs
roles:
- NFS_mount

5
playbooks/prueba_server1.yml Executable file
View File

@@ -0,0 +1,5 @@
---
- hosts: all
roles:
- NFS_mount
- LDAP_create

5
playbooks/pruebas_carpetas.yml Executable file
View File

@@ -0,0 +1,5 @@
---
- hosts: Gsmc
roles:
- LDAP_Create

3
playbooks/svn_prueba.yml Executable file
View File

@@ -0,0 +1,3 @@
- hosts: SVN_Prueba
roles:
- SVN

View 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
View 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).

View File

@@ -0,0 +1,2 @@
---
# defaults file for Acronis

View File

@@ -0,0 +1,2 @@
---
# handlers file for Acronis

View 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.

View 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}}"'

View File

@@ -0,0 +1,2 @@
localhost

View File

@@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- Acronis

View File

@@ -0,0 +1,2 @@
---
# vars file for Acronis

View File

@@ -0,0 +1,4 @@
---
server_acronis: 172.17.22.175
user_acronis: root
password_acronis: gmv2gmv

View 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
View 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).

View File

@@ -0,0 +1,2 @@
---
# defaults file for Acronis

View File

@@ -0,0 +1,2 @@
---
# handlers file for Acronis

View 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.

View 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'

View File

@@ -0,0 +1,2 @@
localhost

View File

@@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- Acronis

View File

@@ -0,0 +1,2 @@
---
# vars file for Acronis

29
roles/Afick_Install/.travis.yml Executable file
View 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
View 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).

View File

@@ -0,0 +1,2 @@
---
# defaults file for Afick_Install

View File

@@ -0,0 +1,2 @@
---
# handlers file for Afick_Install

View 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.

View 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

View File

@@ -0,0 +1,2 @@
localhost

View File

@@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- Afick_Install

View File

@@ -0,0 +1,2 @@
---
# vars file for Afick_Install

View 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
View 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).

View File

@@ -0,0 +1,2 @@
---
# defaults file for Afick_Install

View File

@@ -0,0 +1,2 @@
---
# handlers file for Afick_Install

View 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.

View 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

View File

@@ -0,0 +1,2 @@
localhost

View File

@@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- Afick_Install

View File

@@ -0,0 +1,2 @@
---
# vars file for Afick_Install

View 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
View 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).

View File

@@ -0,0 +1,2 @@
---
# defaults file for NFS-Server

View 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

View File

@@ -0,0 +1,2 @@
---
# handlers file for NFS-Server

View 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.

View 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

View File

@@ -0,0 +1,2 @@
localhost

View File

@@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- NFS-Server

View File

@@ -0,0 +1,2 @@
---
# vars file for NFS-Server

View 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/

View 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).

View File

@@ -0,0 +1,2 @@
---
# defaults file for Configure_Hostname

View File

@@ -0,0 +1,2 @@
---
# handlers file for Configure_Hostname

View 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.

View 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'

View File

@@ -0,0 +1,2 @@
localhost

View File

@@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- Configure_Hostname

View File

@@ -0,0 +1,3 @@
---
# vars file for Configure_Hostname
suffix: gsmc.com

38
roles/Git_Repo/README.md Executable file
View 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).

View File

@@ -0,0 +1,2 @@
---
# defaults file for NFS_mount

View 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

View 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

View File

@@ -0,0 +1,2 @@
---
# handlers file for NFS_mount

53
roles/Git_Repo/meta/main.yml Executable file
View 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
View 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
View File

@@ -0,0 +1,2 @@
localhost

5
roles/Git_Repo/tests/test.yml Executable file
View File

@@ -0,0 +1,5 @@
---
- hosts: localhost
remote_user: root
roles:
- NFS_mount

2
roles/Git_Repo/vars/main.yml Executable file
View File

@@ -0,0 +1,2 @@
---
# vars file for NFS_mount

38
roles/Git_client/README.md Executable file
View 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).

View File

@@ -0,0 +1,2 @@
---
# defaults file for NFS_mount

View 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

View 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

View File

@@ -0,0 +1,2 @@
---
# handlers file for NFS_mount

53
roles/Git_client/meta/main.yml Executable file
View 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.

View 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'

View File

@@ -0,0 +1,2 @@
localhost

View 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