tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

Update main.yaml

Open Ayoub-HEDFI opened this issue 2 years ago • 1 comments

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 avatar Sep 18 '23 21:09 Ayoub-HEDFI

@Ayoub-HEDFI thanks for the PR, but

  1. "Become: yes" is already set on the playbook here - https://github.com/antonputra/tutorials/blob/603202344f0a1c1bb07cad3f1fb370db9311dbbd/lessons/014/nginx.yaml#L5
  2. 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

antonputra avatar Sep 19 '23 04:09 antonputra