41301/playbook-to-install-and-start-nginx-on-ubuntu
Write your playbook like this:
--- - hosts: droplets tasks: - name: Installs nginx web server apt: pkg=nginx state=installed update_cache=true notify: - start nginx handlers: - name: start nginx service: name=nginx state=started
This is how you install NGINX on ubuntu, above code is outdated.
--- - hosts: AppServer become: yes tasks: - name: Installs nginx web server apt: name: nginx state: present update_cache: true notify: - start nginx handlers: - name: start nginx service: name: nginx state: present
You need three main variables, one to ...READ MORE
Hi@Shashi, Ansible has one module named ec2. This is ...READ MORE
Try thhis out: --- - hosts: hosts tasks: ...READ MORE
You don't really need anything specific. Just ...READ MORE
Try using ingress itself in this manner except ...READ MORE
Hey @nmentityvibes, you seem to be using ...READ MORE
You could also try to mount a ...READ MORE
It looks like ansible may be installed ...READ MORE
Seems like you're stuck at creating ansible ...READ MORE
You can have three roles under /etc/ansible/roles -prerequisites -mongodb -nodejs under /etc/ansible ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.