This commit is contained in:
parent
952ada4345
commit
b067186e30
@ -48,6 +48,7 @@ local PipelineDeployment = {
|
||||
image: "xoxys/molecule:ec2-linux-amd64",
|
||||
pull: "always",
|
||||
environment: {
|
||||
ANSIBLE_ROLES_PATH: "/drone/src",
|
||||
AWS_ACCESS_KEY_ID: { "from_secret": "aws_access_key_id" },
|
||||
AWS_SECRET_ACCESS_KEY: { "from_secret": "aws_secret_access_key" },
|
||||
AWS_REGION: "eu-central-1",
|
||||
@ -55,6 +56,7 @@ local PipelineDeployment = {
|
||||
PY_COLORS: 1
|
||||
},
|
||||
commands: [
|
||||
"/bin/bash /docker-entrypoint.sh",
|
||||
"molecule create --scenario-name ec2-centos-7",
|
||||
"molecule converge --scenario-name ec2-centos-7",
|
||||
"molecule verify --scenario-name ec2-centos-7",
|
||||
|
@ -54,17 +54,13 @@ steps:
|
||||
pull: always
|
||||
image: xoxys/molecule:ec2-linux-amd64
|
||||
commands:
|
||||
- /bin/bash /docker-entrypoint.sh
|
||||
- pwd
|
||||
- ls -l /library
|
||||
- ansible --version
|
||||
- /bin/bash /docker-entrypoint.sh
|
||||
- molecule create --scenario-name ec2-centos-7
|
||||
- molecule converge --scenario-name ec2-centos-7
|
||||
- molecule verify --scenario-name ec2-centos-7
|
||||
- molecule destroy --scenario-name ec2-centos-7
|
||||
environment:
|
||||
ANSIBLE_ROLES_PATH: /drone/src
|
||||
ANSIBLE_LIBRARY: /library
|
||||
AWS_ACCESS_KEY_ID:
|
||||
from_secret: aws_access_key_id
|
||||
AWS_REGION: eu-central-1
|
||||
|
@ -10,9 +10,6 @@ platforms:
|
||||
vpc_subnet_id: subnet-9b6896f1
|
||||
provisioner:
|
||||
name: ansible
|
||||
env:
|
||||
ANSIBLE_ROLES_PATH: /drone/src
|
||||
ANSIBLE_LIBRARY: /library
|
||||
lint:
|
||||
name: ansible-lint
|
||||
verifier:
|
||||
|
Loading…
Reference in New Issue
Block a user