xmpls
  • Home

Ansible - Install Nginx on Ubuntu

Last updated on  Mar 18, 2023
vi install_nginx.yml
---
- hosts: all
  become: yes
  tasks:
    - name: Install Nginx
      apt:
        name: nginx
        update_cache: yes
ansible-playbook -K install_nginx.yml
Previous Ansible - Ubuntu, update, upgrade, dist-upgrade, autoremove
Next Ansible - Install Node.js and Yarn on Ubuntu
xmpls © 2023
Powered by Ghost