This project is uncompleted.
- Can not register service(systemd).
# move to work folder
var_work_folder="$HOME"
cd $var_work_folder
# install git
sudo yum install -y git
# install epel(Extra Packages for Enterprise Linux)
sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
# install ansible
sudo yum install --enablerepo=epel -y ansible
# git clone this project
git clone https://github.com/sasano8/ansible.git
# change current directory
cd ansible/
# test ping
ansible all -i hosts -m ping
app_name="sample"
ansible-playbook $HOME/ansible/playbooks/$app_name/playbook.yml -i $HOME/ansible/hosts