Hi All, I have written a YAML to install Nginx on my AWS Slave server. But every time i got below error while running my playbook. I googled to resolve this issue, but unable to do so. Can you guys help me in sorting what i am doing wrong here. I am using Ubuntu 16 and my YAML is,
*- hosts: AWS_Slave* * tasks:* * - name: nginx* * apt_key: url=http://nginx.org/keys/nginx_signing.key state=present* * - name: nginx | Adding sources.list deb url for nginx* * lineinfile: dest=/etc/apt/sources.list line="deb http://nginx.org/packages/mainline/ubuntu/ xenial nginx"* * - name: nginx | Updating apt cache* * apt:* * update_cache: yes* * - name: nginx | Installing nginx* * apt:* * pkg: nginx* * state: latest* * - name: nginx | Starting nginx* * service:* * name: nginx* * state: started* -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/814d51d5-ea3b-4cab-bcc1-e348ccc98f1b%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
