Showing
2 changed files
with
13 additions
and
19 deletions
playbooks/resolv.yml
0 → 100644
1 | -Ansible Role to config /etc/resolv.conf | 1 | +resolv |
2 | ========= | 2 | ========= |
3 | 3 | ||
4 | -An Ansible role to configure /etc/resolv.conf | 4 | +配置 `/etc/resolv.conf` |
5 | 5 | ||
6 | 6 | ||
7 | Requirements | 7 | Requirements |
8 | ------------ | 8 | ------------ |
9 | 9 | ||
10 | -Any pre-requisites that may not be covered by Ansible itself or the role should be mentioned here. For instance, if the role uses the EC2 module, it may be a good idea to mention in this section that the boto package is required. | 10 | +`inventory` 文件中存在 `nameservers` (dns服务器地址) |
11 | 11 | ||
12 | -Role Variables | ||
13 | --------------- | ||
14 | - | ||
15 | -A description of the settable variables for this role should go here, including any variables that are in defaults/main.yml, vars/main.yml, and any variables that can/should be set via parameters to the role. Any variables that are read from other roles and/or the global scope (ie. hostvars, group vars, etc.) should be mentioned here as well. | ||
16 | - | ||
17 | -Dependencies | ||
18 | ------------- | ||
19 | - | ||
20 | -A list of other roles hosted on Galaxy should go here, plus any details in regards to parameters that may need to be set for other roles, or variables that are used from other roles. | ||
21 | 12 | ||
22 | Example Playbook | 13 | Example Playbook |
23 | ---------------- | 14 | ---------------- |
24 | 15 | ||
25 | -Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too: | 16 | + ```yml |
26 | 17 | ||
27 | - hosts: servers | 18 | - hosts: servers |
28 | roles: | 19 | roles: |
29 | - - { role: username.rolename, x: 42 } | ||
30 | - | ||
31 | -License | ||
32 | -------- | 20 | + - resolv |
33 | 21 | ||
34 | -BSD | 22 | +``` |
35 | 23 | ||
36 | Author Information | 24 | Author Information |
37 | ------------------ | 25 | ------------------ |
38 | 26 | ||
39 | -An optional section for the role authors to include contact information, or a website (HTML is not allowed). | 27 | +chunhua.zhang@yoho.cn |
-
Please register or login to post a comment