You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Blagovest Petrov
e59fcfa3c1
|
2 years ago | |
---|---|---|
defaults | 2 years ago | |
files | 2 years ago | |
handlers | 2 years ago | |
meta | 2 years ago | |
tasks | 2 years ago | |
tests | 2 years ago | |
vars | 2 years ago | |
.gitignore | 2 years ago | |
README.md | 2 years ago |
README.md
ansible-rhel4
Ansible support for EL4. Installs the last Python 2.7
Known issues:
- ansible.builtin.yum module doesn't work
Requirements
Add the following to hosts
:
client_node ansible_python_interpreter=/opt/python2.7/bin/python2.7
The SSHD in EL4 supports only older algorithms. To login successfully in EL4 host, pass those options to the SSH client:
ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa -o KexAlgorithms=+diffie-hellman-group1-sha1
Example ~.ssh/config:
Host el4-host
HostName el4-host.acme.local
HostKeyAlgorithms=+ssh-rsa
PubkeyAcceptedKeyTypes=+ssh-rsa
KexAlgorithms=+diffie-hellman-group1-sha1
Also, disable gathering of facts the first time:
gather_facts: no
The script is using raw SCP command from the local host. It won't work with --ask-pass
Role Variables
ansible_rhel4_python_version: "2.7.18"
Dependencies
EL4 repository archive must work to install development packages.
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
become: yes
gather_facts: no
ansible_python_interpreter=/opt/python2.7/bin/python2.7
roles:
- { role: ansible-rhel4 }
License
BSD