-
Notifications
You must be signed in to change notification settings - Fork 53
ansible #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ansible #50
Conversation
inital work posting to github. looking to work with the community and veritas on the ansible deployments. msdp_create and vmware_resourcelimits need some assitance. although it looks right from the swagger docs, it seems to through an api error.
updated body yaml to correct syntax.
Updated to one call
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, and since this has been sitting without comment since Dec'2019, someone should go ahead and approve this merge.
vmware asset groups post for vmware filter based on folders.
an example of how we are doing a slo post.
slo_post example
new file added for vmware asset-groups
Added two more files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could use a little polish, but it looks good on the whole.
@@ -0,0 +1,25 @@ | |||
### NetBackup API Code Samples for Ansible |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's start headings at level 1 instead of level 3, please.
### NetBackup API Code Samples for Ansible | |
# NetBackup API Code Samples for Ansible |
#### Pre-requisites: | ||
|
||
- NetBackup 8.1.1 or higher | ||
- ansible 2.x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capitalize proper nouns.
- ansible 2.x | |
- Ansible 2.x |
tasks: | ||
-name: name of tasks | ||
include_task: tasklocation/taskname |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mark for display as code, and make it valid YAML syntax.
tasks: | |
-name: name of tasks | |
include_task: tasklocation/taskname | |
```yaml | |
tasks: | |
- name: name of tasks | |
include_task: tasklocation/taskname | |
\``` |
register: login | ||
|
||
- name: set facts | ||
set_fact: | ||
login_token: "{{login.json.token}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some plays use login_token
, and others use login.json.token
directly. What's the difference?
Vars for ansible are defined in a inventory file for use in plays | ||
vars created during plays are used in future ones like login.yml. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Markdown renders this as one sentence. And passive voice makes it unclear whose responsibility it is to perform the actions described here.
Vars for ansible are defined in a inventory file for use in plays | |
vars created during plays are used in future ones like login.yml. | |
Define variables for Ansible in an inventory file for use in plays. | |
Variables registered during plays like login.yaml are used in subsequent plays. |
The start of an ansible snipit section with some tested code against 8.2