artefactual-labs / ansible-nginx

0 stars 8 forks source link

Problem: Ansible minimum version requirement needs to be updated #16

Closed mamedin closed 3 years ago

mamedin commented 3 years ago

After last change added, the minimun ansible version required is 2.6.2

It is needed to use the vars/main/* files. This feature was added in ansible PR:

https://github.com/ansible/ansible/pull/36357

The error in role when using ansible<2.6.2 is:

TASK [artefactual-nginx : Ensure log directory exist] ******************************************************************************************************************
Tuesday 23 March 2021  18:32:50 +0100 (0:00:01.961)       0:00:07.691 *********
fatal: [atom1.mamedin-test.camps.accesstomemory.org]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'nginx_log_dir' is undefined\n\nThe error appears to have been in '/home/maml/artefactual/deployment-OVH-FIRE/envs/camps/roles/artefactual-nginx/tasks/main.yml': line 48, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Ensure log directory exist\n  ^ here\n"}
    to retry, use: --limit @/home/maml/artefactual/deployment-OVH-FIRE/envs/camps/atom.retry
mamedin commented 3 years ago

PR merged