Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/jenkins/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Amazon web services 如何以ansible角色在文件文件夹中运行文件?_Amazon Web Services_Jenkins_Ansible_Ansible Role - Fatal编程技术网

Amazon web services 如何以ansible角色在文件文件夹中运行文件?

Amazon web services 如何以ansible角色在文件文件夹中运行文件?,amazon-web-services,jenkins,ansible,ansible-role,Amazon Web Services,Jenkins,Ansible,Ansible Role,我有一个ansible剧本,deploy_app_prod.yml,它调用app_beanstalk ansible角色 ├── app_beanstalk │   │   ├── README.md │   │   ├── defaults │   │   │   └── main.yml │   │   ├── files │   │   │   ├── extensions │   │   │   │   ├── 01_addLocalDNS.config │   │   │   │  

我有一个ansible剧本,deploy_app_prod.yml,它调用app_beanstalk ansible角色

├── app_beanstalk
│   │   ├── README.md
│   │   ├── defaults
│   │   │   └── main.yml
│   │   ├── files
│   │   │   ├── extensions
│   │   │   │   ├── 01_addLocalDNS.config
│   │   │   │   ├── 02_resources.config
│   │   │   │   ├── 03_cloudwatch.config
│   │   │   │   ├── 03_option_settings.config
│   │   │   │   ├── 04_properties.config
│   │   │   │   ├── 04_tail_logs.config
│   │   │   │   ├── 05_s3fs.config
│   │   │   │   ├── 06_scripts.config
│   │   │   │   ├── 06_tomcat_ssl.config
│   │   │   │   ├── 07_cron_jobs.config
│   │   │   │   ├── 10_amazon_aide.config
│   │   │   │   ├── 10_amazon_harden.config
│   │   │   │   ├── 10_aws_inspector.config
│   │   │   │   ├── 10_tomcat7_harden.config
│   │   │   │   ├── 11_scheduled_scaling.config
│   │   │   │   ├── 12_update_tomcat_config.config
│   │   │   │   ├── 13_cloudwatch_alarms.config
│   │   │   │   ├── 14_apache_server.config
│   │   │   │   ├── 90_security_fixes.config
│   │   │   │   ├── 90_setup_iptables.config
│   │   │   │   ├── 99_deepsecurityagent.config
│   │   │   │   ├── afp.properties.Portal-Admin
│   │   │   │   ├── afp.properties.Portal-Live
│   │   │   │   ├── afp.properties.Portal-PCP
│   │   │   │   ├── afp.properties.Portal-Util
│   │   │   │   ├── afportal_cron_jobs.txt
│   │   │   │   ├── bin
│   │   │   │   │   ├── get_aws_instance_id.sh
│   │   │   │   │   ├── link-checker-configuration.properties
│   │   │   │   │   ├── run_alerts.sh
│   │   │   │   │   ├── run_client.sh
│   │   │   │   │   ├── run_encryption_utility.sh
│   │   │   │   │   ├── run_image_retriever.sh
│   │   │   │   │   ├── run_link_checker_external_validations.sh
│   │   │   │   │   ├── run_link_checker_internal_validations.sh
│   │   │   │   │   ├── run_link_checker_notification.sh
│   │   │   │   │   ├── run_link_checker_update_indexer.sh
│   │   │   │   │   ├── run_load_alerts.sh
│   │   │   │   │   ├── run_mv_apache_logs.sh
│   │   │   │   │   ├── run_mv_autonomy_xml_files.sh
│   │   │   │   │   └── run_survey_update_utility.sh
│   │   │   │   ├── header.jsp
│   │   │   │   ├── httpd
│   │   │   │   │   ├── conf
│   │   │   │   │   │   ├── httpd.conf
│   │   │   │   │   │   └── mime.types
│   │   │   │   │   └── conf.d
│   │   │   │   │       └── elasticbeanstalk
│   │   │   │   │           ├── 00_application.conf
│   │   │   │   │           ├── 02_static.conf
│   │   │   │   │           ├── af_portal.conf
│   │   │   │   │           └── stig.conf
│   │   │   │   └── server.xml
│   │   │   └── s3fs-fuse-master.zip
│   │   ├── handlers
│   │   │   └── main.yml
│   │   ├── meta
│   │   │   └── main.yml
│   │   ├── tasks
│   │   │   └── main.yml
│   │   ├── tests
│   │   │   ├── inventory
│   │   │   └── test.yml
│   │   └── vars
│   │       └── main.yml
但是,这些文件都没有显式调用files文件夹中的任何.config或.sh文件,但是当jenkins作业按需运行并执行deploy_app_prod.yml文件时,prod环境在aws托管平台中得到了正确配置。我不明白这些.config文件或.sh文件是如何执行的?
谢谢

我找到了答案。罪魁祸首是一个带有以下文件树的模块:

 name: Create Template files
  template:
    src: "{{ item.src }}"
    dest: "/var/tmp/{{application_name}}_{{ version }}/app/.ebextensions/{{ item.path }}"
  with_filetree:
    - extensions/
  when: item.state == 'file'