Skip to content

Henryfzh/ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ansible Script for Ubuntu

Install Ansible

sudo apt install -y software-properties-common
sudo add-apt-repository --yes --update ppa:ansible/ansible
sudo apt install -y ansible

How to Run

Verify the Playbook Without Making Changes

To simulate the playbook execution without applying changes, use the --check option:

ansible-playbook -i inventory.yml playbook.yml --ask-become-pass --check

Run the Playbook

To execute the playbook and apply the changes, run:

ansible-playbook -i inventory.yml playbook.yml --ask-become-pass

Run the Playbook with specific task

ansible-playbook -i inventory.yml playbook.yml --tags "grafana,nvim" --ask-become-pass

Test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages