first commit

This commit is contained in:
Valentin CZERYBA 2022-08-02 22:29:56 +02:00
commit dbbf9f5e7d
8 changed files with 100 additions and 0 deletions

5
ansible.cfg Normal file
View File

@ -0,0 +1,5 @@
[defaults]
remote_user = admloc
private_key_file = /home/provisioner/.ssh/id_rsa_toolbox
inventory = hosts

5
deploy.yml Normal file
View File

@ -0,0 +1,5 @@
---
- hosts: all
remote_user: admloc
roles:
- deploy-web

2
hosts Normal file
View File

@ -0,0 +1,2 @@
centos-test ansible_connection=ssh ansible_host=1.1.110.25

View File

@ -0,0 +1,2 @@
---
# defaults file for deploy-web

View File

@ -0,0 +1,2 @@
---
# handlers file for deploy-web

View File

@ -0,0 +1,57 @@
galaxy_info:
author: your name
description: your 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
# Some suggested licenses:
# - BSD (default)
# - MIT
# - GPLv2
# - GPLv3
# - Apache
# - CC-BY
license: license (GPLv2, CC-BY, etc)
min_ansible_version: 1.2
# If this a Container Enabled role, provide the minimum Ansible Container version.
# min_ansible_container_version:
# Optionally specify the branch Galaxy will use when accessing the GitHub
# repo for this role. During role install, if no tags are available,
# Galaxy will use this branch. During import Galaxy will access files on
# this branch. If Travis integration is configured, only notifications for this
# branch will be accepted. Otherwise, in all cases, the repo's default branch
# (usually master) will be used.
#github_branch:
#
# platforms is a list of platforms, and each platform has a name and a list of versions.
#
# platforms:
# - name: 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,25 @@
---
# tasks file for deploy-web
- name: debug local
local_action:
module: git
repo: "git@gitlab.secu.pcc:descartes/isr-inventory.git"
dest: "/home/provisioner/src/isr-inventory"
archive: "/tmp/isr-inventory.tar.gz"
force: yes
track_submodules: yes
update: yes
key_file: "/home/provisioner/.ssh/id_rsa_toolbox"
run_once: True
become: yes
become_user: provisioner
- name: Create directory
file:
path: "/home/admloc/isr-inventory"
state: directory
- name: Extract repo isr
unarchive:
src: "/tmp/isr-inventory.tar.gz"
dest: "/home/admloc/isr-inventory"

View File

@ -0,0 +1,2 @@
---
# vars file for deploy-web