-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathansible-create.txt
134 lines (126 loc) · 4.13 KB
/
ansible-create.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
Ejemplo creacion proyecto inicial playbooks.
En el directorio raiz donde queramos crearlo
mkdir ansible_creator_example_playbook
cd ansible_creator_example_playbook/
ansible-creator init playbook ansible_creator.ansible_creator_example_playbook
Resultado tree:
.
├── ansible.cfg
├── ansible-navigator.yml
├── collections
│ ├── ansible_collections
│ │ └── ansible_creator
│ │ └── ansible_creator_example_playbook
│ │ ├── README.md
│ │ └── roles
│ │ └── run
│ │ ├── README.md
│ │ └── tasks
│ │ └── main.yml
│ └── requirements.yml
├── devfile.yaml
├── inventory
│ ├── group_vars
│ │ ├── all.yml
│ │ ├── db_servers.yml
│ │ ├── production.yml
│ │ ├── test.yml
│ │ └── web_servers.yml
│ ├── hosts.yml
│ └── host_vars
│ ├── server1.yml
│ ├── server2.yml
│ ├── server3.yml
│ ├── switch1.yml
│ └── switch2.yml
├── linux_playbook.yml
├── network_playbook.yml
├── README.md
└── site.yml
Ejemplo creacion proyecto inicial Colleccion.
En el directorio raiz donde queramos crearlo
mkdir -p ansible_collections/ansible_creator/ansible_creator_example_collection
cd ansible_collections/ansible_creator/ansible_creator_example_collection
ansible-creator init collection ansible_creator.ansible_creator_example_collection
Resultado tree:
.
├── CHANGELOG.rst
├── changelogs
│ └── config.yaml
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING
├── devfile.yaml
├── docs
│ └── docsite
│ └── links.yml
├── extensions
│ ├── eda
│ │ └── rulebooks
│ │ └── rulebook.yml
│ └── molecule
│ ├── integration_hello_world
│ │ └── molecule.yml
│ └── utils
│ ├── playbooks
│ │ ├── converge.yml
│ │ └── noop.yml
│ └── vars
│ └── vars.yml
├── galaxy.yml
├── LICENSE
├── MAINTAINERS
├── meta
│ └── runtime.yml
├── plugins
│ ├── action
│ │ └── __init__.py
│ ├── cache
│ │ └── __init__.py
│ ├── filter
│ │ ├── hello_world.py
│ │ └── __init__.py
│ ├── inventory
│ │ └── __init__.py
│ ├── modules
│ │ └── __init__.py
│ ├── module_utils
│ │ └── __init__.py
│ ├── plugin_utils
│ │ └── __init__.py
│ ├── sub_plugins
│ │ └── __init__.py
│ └── test
│ └── __init__.py
├── pyproject.toml
├── README.md
├── requirements.txt
├── roles
│ └── run
│ ├── defaults
│ │ └── main.yml
│ ├── files
│ ├── handlers
│ │ └── main.yml
│ ├── meta
│ │ └── main.yml
│ ├── README.md
│ ├── tasks
│ │ └── main.yml
│ ├── templates
│ ├── tests
│ │ └── inventory
│ └── vars
│ └── main.yml
├── test-requirements.txt
├── tests
│ ├── integration
│ │ ├── __init__.py
│ │ ├── targets
│ │ │ └── hello_world
│ │ │ └── tasks
│ │ │ └── main.yml
│ │ └── test_integration.py
│ └── unit
│ ├── __init__.py
│ └── test_basic.py
└── tox-ansible.ini