VincentSaelzler / hyper-homelab

A foray into hyper-converged architecture.
GNU General Public License v3.0
0 stars 0 forks source link

get correct jinja version installed #180

Closed VincentSaelzler closed 2 years ago

VincentSaelzler commented 2 years ago

the rsyslog role is not running and it seems to be jinja version related.

VincentSaelzler commented 2 years ago

for some reason the vince user has an old jinja version

vince@devenv:~$ ansible --version
ansible [core 2.12.6]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/vince/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /home/vince/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.8.10 (default, Mar 15 2022, 12:22:08) [GCC 9.4.0]
  jinja version = 2.10.1
  libyaml = True

while root has a newer one

ubuntu@devenv:$ ansible --version
ansible [core 2.12.6]
  config file = /etc/ansible/ansible.cfg
  configured module search path = ['/home/ubuntu/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python3/dist-packages/ansible
  ansible collection location = /home/ubuntu/.ansible/collections:/usr/share/ansible/collections
  executable location = /usr/bin/ansible
  python version = 3.8.10 (default, Mar 15 2022, 12:22:08) [GCC 9.4.0]
  jinja version = 3.1.2
  libyaml = True
VincentSaelzler commented 2 years ago
# Some Jinja2 filters are used that are available in the newer releases.
jinja2>=2.11.2

https://github.com/robertdebock/ansible-role-tomcat/blob/master/requirements.txt

VincentSaelzler commented 2 years ago

seems to be fixed by running this play as vince

  - name: Install python packages
    pip:
      name:
      - pexpect
      - proxmoxer
      - jinja2>=2.11.2 # required by robertdebock.rsyslog