Guest User

Untitled

a guest
Oct 17th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.38 KB | None | 0 0
  1. - name: Playbook to test CodePipeline module
  2. hosts: localhost
  3. vars:
  4. aws_region: us-east-1
  5. codebuild_iam_role_arn: 'arn:aws:iam::XXX:role/codepipeline-service-role'
  6. tasks:
  7.  
  8. - name: CodePipeline project task
  9. aws_codepipeline:
  10. name: test-ansible
  11. role_arn: "{{ codebuild_iam_role_arn }}"
  12. artifact_store:
  13. type: S3
  14. location: foo
  15. stages:
  16. - name: step_1
  17. actions:
  18. - name: action
  19. actionTypeId:
  20. category: Source
  21. owner: AWS
  22. provider: S3
  23. version: '1'
  24. configuration:
  25. S3Bucket: foo
  26. S3ObjectKey: bar
  27. outputArtifacts:
  28. - { name: step_one_output }
  29. - name: step_2
  30. actions:
  31. - name: action
  32. actionTypeId:
  33. category: Build
  34. owner: AWS
  35. provider: CodeBuild
  36. version: '1'
  37. inputArtifacts:
  38. - { name: step_one_output }
  39. outputArtifacts:
  40. - { name: step_two_output }
  41. configuration:
  42. ProjectName: foo
  43. region: "{{ aws_region }}"
  44. state: present
  45. register: output
  46.  
  47. - name: Debug out
  48. debug:
  49. var: output
Add Comment
Please, Sign In to add comment