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
- Host: GitHub
- URL: https://github.com/mark8s/simple-playbook
- Owner: mark8s
- Created: 2022-03-22T10:09:27.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-10T06:34:01.000Z (over 3 years ago)
- Last Synced: 2025-03-31T17:59:39.747Z (7 months ago)
- Language: Shell
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```