|
| 1 | +# Valid play argspec |
| 2 | +--- |
| 3 | +short_description: Advanced config management |
| 4 | +description: This playbook handles complex infrastructure deployments with comprehensive configuration options |
| 5 | +argument_specs: |
| 6 | + deploy_infrastructure: |
| 7 | + short_description: Deploy complete infrastructure stack |
| 8 | + description: |
| 9 | + - Deploys a multi-tier application infrastructure |
| 10 | + - Configures web servers, databases, and load balancers |
| 11 | + author: |
| 12 | + - Infrastructure Team (@infra-team) |
| 13 | + - DevOps Engineer (@devops-lead) |
| 14 | + options: |
| 15 | + environment: |
| 16 | + type: str |
| 17 | + required: true |
| 18 | + choices: |
| 19 | + - development |
| 20 | + - staging |
| 21 | + - production |
| 22 | + description: Target deployment environment |
| 23 | + web_server_count: |
| 24 | + type: int |
| 25 | + required: false |
| 26 | + default: 2 |
| 27 | + description: Number of web servers to deploy |
| 28 | + database_engine: |
| 29 | + type: str |
| 30 | + required: true |
| 31 | + choices: |
| 32 | + - postgresql |
| 33 | + - mysql |
| 34 | + - mongodb |
| 35 | + description: Database engine to use |
| 36 | + enable_ssl: |
| 37 | + type: bool |
| 38 | + required: false |
| 39 | + default: true |
| 40 | + description: Whether to enable SSL/TLS encryption |
| 41 | + examples: | |
| 42 | + # Basic deployment |
| 43 | + - import_playbook: site.yml |
| 44 | + vars: |
| 45 | + environment: production |
| 46 | + database_engine: postgresql |
| 47 | + web_server_count: 3 |
| 48 | + return: ~ |
| 49 | + configure_monitoring: |
| 50 | + short_description: Configure monitoring and alerting systems |
| 51 | + description: |
| 52 | + - Sets up comprehensive monitoring stack |
| 53 | + - Configures alerting rules and notifications |
| 54 | + - Integrates with external monitoring services |
| 55 | + author: |
| 56 | + - Monitoring Team (@monitoring-team) |
| 57 | + options: |
| 58 | + monitoring_stack: |
| 59 | + type: str |
| 60 | + required: true |
| 61 | + choices: |
| 62 | + - prometheus_grafana |
| 63 | + - elk_stack |
| 64 | + description: Monitoring stack to deploy |
| 65 | + alert_channels: |
| 66 | + type: list |
| 67 | + required: false |
| 68 | + default: |
| 69 | + - email |
| 70 | + description: Alert notification channels |
| 71 | + examples: | |
| 72 | + # Basic monitoring setup |
| 73 | + - import_playbook: site.yml |
| 74 | + vars: |
| 75 | + monitoring_stack: prometheus_grafana |
| 76 | + alert_channels: |
| 77 | + - email |
| 78 | + - slack |
| 79 | + return: ~ |
| 80 | + |
| 81 | + security_hardening: |
| 82 | + short_description: Apply security hardening configurations |
| 83 | + description: |
| 84 | + - Implements security best practices |
| 85 | + - Configures firewalls and access controls |
| 86 | + - Sets up vulnerability scanning |
| 87 | + author: |
| 88 | + - Security Team (@security-team) |
| 89 | + options: |
| 90 | + security_level: |
| 91 | + type: str |
| 92 | + required: true |
| 93 | + choices: |
| 94 | + - basic |
| 95 | + - enhanced |
| 96 | + - strict |
| 97 | + description: Level of security hardening to apply |
| 98 | + enable_firewall: |
| 99 | + type: bool |
| 100 | + required: false |
| 101 | + default: true |
| 102 | + description: Whether to configure host-based firewall |
| 103 | + vulnerability_scanning: |
| 104 | + type: bool |
| 105 | + required: false |
| 106 | + default: false |
| 107 | + description: Enable automated vulnerability scanning |
| 108 | + examples: | |
| 109 | + # Basic security hardening |
| 110 | + - import_playbook: site.yml |
| 111 | + vars: |
| 112 | + security_level: enhanced |
| 113 | + enable_firewall: true |
| 114 | + return: ~ |
0 commit comments