deb251b167
This brings the role inline with other windmill roles. Change-Id: I18b1d386463f520d781711ce9fee2f3c2e8e6d81 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
50 lines
1.5 KiB
YAML
50 lines
1.5 KiB
YAML
# Copyright 2015-2020 Red Hat, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
---
|
|
- hosts: all
|
|
vars:
|
|
rolename: ansible-role-boto3
|
|
|
|
roles:
|
|
- "{{ rolename }}"
|
|
|
|
post_tasks:
|
|
- name: Register aws_credentials_file_stat
|
|
become: true
|
|
stat:
|
|
path: /root/.aws/credentials
|
|
register: aws_credentials_file_stat
|
|
|
|
- name: Assert aws_credentials_file_stat tests
|
|
assert:
|
|
that:
|
|
- aws_credentials_file_stat.stat.exists
|
|
- aws_credentials_file_stat.stat.isreg
|
|
- aws_credentials_file_stat.stat.pw_name == 'root'
|
|
- aws_credentials_file_stat.stat.gr_name == 'root'
|
|
- aws_credentials_file_stat.stat.mode == '0640'
|
|
|
|
- name: Register boto3_git_dest_stat
|
|
stat:
|
|
path: /home/zuul/src/github.com/boto/boto3
|
|
register: boto3_git_dest_stat
|
|
when: boto3_install_method == 'git'
|
|
|
|
- name: Assert boto3_git_dest tests
|
|
assert:
|
|
that:
|
|
- boto3_git_dest_stat.stat.exists
|
|
- boto3_git_dest_stat.stat.isdir
|
|
when: boto3_install_method == 'git'
|