Giter Site home page Giter Site logo

ansible-macos-php-dev-setup's Introduction

Ansible mac setup

requirements

  1. python 3.X +
  2. Ansible
  3. sshpass

usages

$ git clone https://git.ithands.com/robert.rajendra/ansible-mac-os-setup.git
$ cd ansible-mac-os-setup
$ cp hosts.example.yml hosts.yml
$ cp vars/env.example.yml vars/env.yml

env.yml

# env located in var/env.yml
# versions
# eg:- 5.7, 5.8
mysql_version:
# http variables
# document root for the app (must be your project folder)
document_root:
# username of the user
username:
# group of the user, Please check which group in older MAC os it is "admin"
group:

hosts.yml

# This file is the inventory file this file contains the the information about hosts
all:
  children:
    setup_macos:
      hosts:
        # this is an ansible host you can create more hosts
        mac:
          ansible_connection: ssh
          # IP of the host machine
          ansible_host:
          # ssh_password
          ansible_ssh_pass:
          # ssh username
          ansible_user:
          # sudo password
          ansible_sudo_pass:

    ungrouped: { }

Run ansible

ansible-playbook -v playbook.yml

Go to target system

run these commands

brew services start --all
apachectl -k start

Initial mysql password is none please set it by

mysql -u root -p
alter user 'root'@'localhost identified by '<your password';
flush privileges;

NOTE

for coloured comments install better comnents for vscode from https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments

ansible-macos-php-dev-setup's People

Contributors

raj1rana avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.