added ansible for deployment in private infrastrucutre

This commit is contained in:
2021-05-21 12:44:15 +04:00
parent 64bc064e56
commit 616f161c36
51 changed files with 864 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
# The `packages` Role
The `packages` role installs the operating system and Python pre-requisites that are required to execute the other roles.
This role may be executed independently by running:
```bash
$ ansible-playbook packages.yml --tags "packages"
```
On execution, this role installs the following directly to the remote machine's operating system:
### Operating System Packages (Debian/Ubuntu)
- apt-transport-https v1.x
- ca-certificates v20180409
- curl v7.x
- gnupg-agent v2.x
- python-apt v1.x
- python-pip v9.x
- python-setuptools v39.x
- software-properties-common v0.96.24.32.7
### Python (pip) Packages
- docker v3.7.0 or greater

View File

View File

View File

View File

View File

@@ -0,0 +1,12 @@
---
# General Dependencies
- name: install general apt dependencies
apt:
name: "{{ general.dependencies.apt }}"
state: present
update_cache: yes
- name: install general pip dependencies for Ansible
pip:
name: "{{ general.dependencies.pip }}"
state: present

View File

@@ -0,0 +1,3 @@
---
- import_tasks: debian.yml
when: ansible_facts['os_family']|lower == 'debian' # debian, ubuntu

View File

View File

@@ -0,0 +1,17 @@
---
# General Dependencies
general:
dependencies:
apt:
- apt-transport-https=1.* # known good with 1.6.6ubuntu0.1 all
- ca-certificates=20180409 # known good with 20180409
- curl=7.* # known good with 7.58.0-2ubuntu3.5
- gnupg-agent=2.* # known good with 2.2.4-1ubuntu1.2
- python3-apt=1.* # known good with 1.6.3
- python3-pip=9.* # known good with 9.0.1-2.3~ubuntu1
- python3-setuptools=39.* # known good with 39.0.1-2
- software-properties-common=0.96.24.32.7 # known good with 0.96.24.32.7
- git
- golang
pip:
- docker>=3.7.0 # known good with 3.7.0