An open API service indexing awesome lists of open source software.

https://github.com/mark8s/simple-playbook

My first ansible playbook
https://github.com/mark8s/simple-playbook

Last synced: about 1 month ago
JSON representation

My first ansible playbook

Awesome Lists containing this project

README

          

### simple-playbook
一个简单的ansible实践project。

#### install gcp (include infra、code、dns、bizdb)
First,you need copy gitlab_data.tar 、 bind_conf.tar、mongodb to /roles/lib dir

##### install all
```shell
ansible-playbook -i inventory/gcp deploy-gcp.yml
```

##### install infra alone
```shell
ansible-playbook -i inventory/gcp role/up-infra.yml
```

##### install code alone
```shell
ansible-playbook -i inventory/gcp role/up-code.yml
```

##### install dns alone
```shell
ansible-playbook -i inventory/gcp role/up-dns.yml
```

##### install bizdb alone

```shell
ansible-playbook -i /inventory/gcp role/up-bizdb.yml
```

#### new user
```shell
useradd test
passwd test
chmod u-w /etc/sudoers

visudo ,in the end add next command
test ALL=(ALL) NOPASSWD: ALL

```