Thanks to visit codestin.com
Credit goes to github.com

Skip to content

locaIhost/ansible_local

Repository files navigation

Attention ⚠️

This repository uses gitleaks via pre-commit

  1. Install pre-commit globally (Recommended):
# macOS
brew install pre-commit

# Linux
pip3 install --user pre-commit

# Or use your OS package manager

# Initialize hooks
pre-commit install
  1. Install pre-commit virtual environment:
python3 -m venv venv
source venv/bin/activate
pip install pre-commit
pre-commit install

Example runnig 🌐

Ansible test ping!

ansible localhost -m ping -i inventory -u root --private-key=~/.ssh/u_key -k

use option '-k' if u key have parsphere.

Example run roles (enable ip_frw)

ansible-playbook side.yml -i inventory -u root --private-key=~/.ssh/u_key -k -l uap

side.yml is a run file used to more include roles for specific targets (use option '-l' for further limit selected hosts).

Example run roles and ansible-encrypt

ansible-playbook side.yml -i inventory -u root --private-key=~/.ssh/u_key -k -l uap --ask-vault-password

Check fact for debug

ansible uap -m setup -i inventory -k -u root
ansible uap -m setup -a "filter=ansible_os_family" -i inventory -k -u root

Note

  1. At the moment I do not use a virtual environment and ssh agent.
  2. If u have any comments, corrections or suggestions, please create an issue, don't be shy. (:
  3. There will be encryption used in some places - don't worry, you can change that.

About

Ansible role and playbook for chaos engineering experiments.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages