Create ansible playbook for a deployed node #1 #4
Conversation
Create Pipfile for use with `install.sh` script responsible for asnible environment preparation.
Added `collections.yaml` file for use with `ansible galaxy` scripting for modules dependencies installation.
926fa28 to
1db069d
Compare
Create env_setup.sh Basic form of script for environment preparation created. Tests should be done and conversation should be started.
1db069d to
bcda537
Compare
|
Major
Below, is potential system-wide error scripting, as regexp of - name: Enable ipv4 forward in the /etc/sysctl.conf
replace:
path: /etc/sysctl.conf
regexp: '#net.ipv4.ip_forward=1'
replace: 'net.ipv4.ip_forward=1'Instead - name: Enable IPv4 forward in the /etc/sysctl.conf
ansible.builtin.lineinfile:
path: /etc/sysctl.conf
regexp: '^(# *){0,1}net\.ipv4\.ip_forward *='
line: net.ipv4.ip_forward=1 |
|
Included 2 PR in one as some corrections had to be done :-) |
Addressing issue #1
Create ansible playbook for a deployed node #1
The best way would be not to interfere with installed packages and use
pipenvto be sure all packages meet requirements, example of script:NOTICE ==> Ubuntu 20.04 uses
Python3.9as default, but Ubuntu 22.04 does not allow by default version lower thanPython3.10. This is why Pipfile lockfile can not be created as we allow different versions of base python3.Then also required files need to be added:
Pipfilecollections.yaml