tutorials
tutorials copied to clipboard
Update main.yaml
avoid Errors on new AWS Ubuntu AMIs, need to update_cache like sudo apt update before trying to install Nginx, if not it won't the find its package in apt,.... Thanks btw
@Ayoub-HEDFI thanks for the PR, but
- "Become: yes" is already set on the playbook here - https://github.com/antonputra/tutorials/blob/603202344f0a1c1bb07cad3f1fb370db9311dbbd/lessons/014/nginx.yaml#L5
- Also I would prefer to include "update_cache: yes" on the existing task rather then create a new one - https://github.com/antonputra/tutorials/blob/603202344f0a1c1bb07cad3f1fb370db9311dbbd/lessons/014/roles/nginx/tasks/main.yaml#L8