exp 5555555


sudo apt install ansible -y

ansible --version

gedit hosts.ini

[local]

localhost ansible_connection=local

gedit setup.yml

---

- name: Basic Server Setup

  hosts: local

  become: yes # Use privilege escalation (sudo)

  tasks:

    - name: Update apt cache

      apt:

        update_cache: yes


    - name: Install curl

      apt:

        name: curl

        state: present


sudo ansible-playbook -i hosts.ini setup.yml

Comments

Popular posts from this blog