- name: "Add User"
ansible.builtin.user:
- createhome: "yes"
- groups: "adm,sudo"
+ append: true
+ createhome: true
+ groups: "admin,adm,sudo"
name: "testuser"
password: "$6$Y62lhMGJD8YNzmJn$H4DSqjrwFp5WN3tOvIrF.g/G2duOV76zXHAmaA/RU8jfT8H8sDumLQe/Q.EmI5pjPv7dzgI8j9BQPWes7efBK0"
shell: "/bin/bash"
---
# file: tasks/main.yaml
-- name: "Build Base Docker Images"
- import_tasks: "base.yaml"
- when: >
- inventory_hostname in groups["sut"]
- tags:
- - docker-base
+#- name: "Build Base Docker Images"
+# import_tasks: "base.yaml"
+# when: >
+# inventory_hostname in groups["sut"]
+# tags:
+# - docker-base
- name: "Docker Orchestration for TG"
import_tasks: "tg.yaml"
variable "tg_ami" {
description = "AMI to use for the instance."
type = string
- default = "ami-05fc62a89ea9fdae4"
+ default = "ami-0c18f927fc6ac6c52"
}
variable "tg_associate_public_ip_address" {
variable "tg_ami" {
description = "AMI to use for the instance."
type = string
- default = "ami-05fc62a89ea9fdae4"
+ default = "ami-0c18f927fc6ac6c52"
}
variable "tg_associate_public_ip_address" {
variable "tg_ami" {
description = "AMI to use for the instance."
type = string
- default = "ami-05fc62a89ea9fdae4"
+ default = "ami-0c18f927fc6ac6c52"
}
variable "tg_associate_public_ip_address" {
variable "sut1_ami" {
description = "AMI to use for the instance."
type = string
- default = "ami-04de4ffdd0dfa22e8"
+ default = "ami-0269b92e0a5932902"
}
variable "sut1_associate_public_ip_address" {
variable "tg_ami" {
description = "AMI to use for the instance."
type = string
- default = "ami-05fc62a89ea9fdae4"
+ default = "ami-0c18f927fc6ac6c52"
}
variable "tg_associate_public_ip_address" {
variable "sut1_ami" {
description = "AMI to use for the instance."
type = string
- default = "ami-04de4ffdd0dfa22e8"
+ default = "ami-0269b92e0a5932902"
}
variable "sut1_associate_public_ip_address" {
variable "tg_ami" {
description = "AMI to use for the instance."
type = string
- default = "ami-05fc62a89ea9fdae4"
+ default = "ami-0c18f927fc6ac6c52"
}
variable "tg_associate_public_ip_address" {
ssh_timeout = "30m"
}
-build {
- name = "csit_ubuntu_noble_x86_sut-packer"
- sources = [
- "source.amazon-ebs.csit_ubuntu_noble_x86_sut"
- ]
- provisioner "shell" {
- inline = var.first_run_commands
- }
- provisioner "ansible" {
- playbook_file = var.ansible_file_path
- user = "ubuntu"
- use_proxy = false
- groups = ["sut_aws"]
- extra_arguments = [
- "--extra-vars", "ansible_ssh_pass=${var.ansible_provision_pwd}",
- "--extra-vars", "aws=true"
- ]
- }
- provisioner "shell" {
- inline = var.last_run_commands
- }
-}
+#build {
+# name = "csit_ubuntu_noble_x86_sut-packer"
+# sources = [
+# "source.amazon-ebs.csit_ubuntu_noble_x86_sut"
+# ]
+# provisioner "shell" {
+# inline = var.first_run_commands
+# }
+# provisioner "ansible" {
+# playbook_file = var.ansible_file_path
+# user = "ubuntu"
+# use_proxy = false
+# groups = ["sut_aws"]
+# extra_arguments = [
+# "--extra-vars", "ansible_ssh_pass=${var.ansible_provision_pwd}",
+# "--extra-vars", "aws=true"
+# ]
+# }
+# provisioner "shell" {
+# inline = var.last_run_commands
+# }
+#}
build {
name = "csit_ubuntu_noble_x86_tg-packer"