Skip to content

ryuichi1208/ansible-for-myservers

Repository files navigation

Overview

Setup repository for my cute servers.

How to use

# syntax test
$ ansible-playbook -i inventory/inventory.ini linux_init.yml --syntax-check

# exec test
$ ansible-playbook -i inventory/inventory.ini linux_init.yml --check

# lint
$ ansible-lint

# config check
$ ansible-config dump --changed-only

# exec
$ ansible-playbook -i inventory/inventory.ini linux_init.yml --diff

# step exec
$ ansible-playbook -i inventory/inventory.ini linux_init.yml --step

# docker exec
$ docker container run -it -v $(pwd):/tmp mp001 ansible --version

# linter
$ make ci ARG=${playbook_file_name}