Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.24 KB

README.md

File metadata and controls

50 lines (32 loc) · 1.24 KB

Mac Ansible Playbook

The Web server (nginx), PHP and the services (MariaDB, Mailhog) are installed locally with Ansible.

All the management of the system (configuration, update, etc) goes through this tool which allows all the world to have a similar environment.

Install

You must first clone the repository to setup the environment.

$ xcode-select --install
$ git clone https://github.com/ter-informatique/mac-playbook.git ~/.mac-playbook
# With SSH
$ git clone [email protected]:ter-informatique/mac-playbook.git ~/.mac-playbook

Then you have to configure the environment:

$ cd ~/.mac-playbook
$ touch config.yml
$ vim config.yml

You can look in the file config.default.yml to customize your environment.

To avoid having to enter the SUDO password all the time we will encrypt our SUDO password with a password that will be stored in the keychain :

$ ./scripts/generate-ansible-password

Then :

$ make bootstrap

And to finish : reboot the computer.

From there, you can use the dev binary to manage the environment.

Usages

To list all commands just type dev.

License

mac-playbook is licensed under the MIT license.