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