forked from ansible/ansible
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add module support to yamllint sanity test. (ansible#34964)
* Add module support to yamllint sanity test. * Fix duplicate keys in module RETURN docs. * Fix syntax in return_common docs fragment. * Fix duplicate keys in module EXAMPLES docs.
- Loading branch information
Showing
53 changed files
with
533 additions
and
344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
test/sanity/yamllint/config/default.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,43 +104,43 @@ | |
|
||
EXAMPLES = ''' | ||
# create an account in domain 'CUSTOMERS' | ||
local_action: | ||
module: cs_account | ||
name: customer_xy | ||
username: customer_xy | ||
password: S3Cur3 | ||
last_name: Doe | ||
first_name: John | ||
email: [email protected] | ||
domain: CUSTOMERS | ||
- local_action: | ||
module: cs_account | ||
name: customer_xy | ||
username: customer_xy | ||
password: S3Cur3 | ||
last_name: Doe | ||
first_name: John | ||
email: [email protected] | ||
domain: CUSTOMERS | ||
# Lock an existing account in domain 'CUSTOMERS' | ||
local_action: | ||
module: cs_account | ||
name: customer_xy | ||
domain: CUSTOMERS | ||
state: locked | ||
- local_action: | ||
module: cs_account | ||
name: customer_xy | ||
domain: CUSTOMERS | ||
state: locked | ||
# Disable an existing account in domain 'CUSTOMERS' | ||
local_action: | ||
module: cs_account | ||
name: customer_xy | ||
domain: CUSTOMERS | ||
state: disabled | ||
- local_action: | ||
module: cs_account | ||
name: customer_xy | ||
domain: CUSTOMERS | ||
state: disabled | ||
# Enable an existing account in domain 'CUSTOMERS' | ||
local_action: | ||
module: cs_account | ||
name: customer_xy | ||
domain: CUSTOMERS | ||
state: enabled | ||
- local_action: | ||
module: cs_account | ||
name: customer_xy | ||
domain: CUSTOMERS | ||
state: enabled | ||
# Remove an account in domain 'CUSTOMERS' | ||
local_action: | ||
module: cs_account | ||
name: customer_xy | ||
domain: CUSTOMERS | ||
state: absent | ||
- local_action: | ||
module: cs_account | ||
name: customer_xy | ||
domain: CUSTOMERS | ||
state: absent | ||
''' | ||
|
||
RETURN = ''' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.