Skip to content

Commit 92edc54

Browse files
authored
Merge pull request #49719 from TomArcher/ansible-common-prereqs-sections-into-include-file
Ansible - Create include files for 'Cloud Shell vs. Create/Configure VM' prereqs
2 parents ea49f00 + 7959ae1 commit 92edc54

File tree

5 files changed

+24
-44
lines changed

5 files changed

+24
-44
lines changed

articles/ansible/ansible-create-configure-aks.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: tomarcher
77
manager: jeconnoc
88
ms.author: tarcher
99
ms.topic: tutorial
10-
ms.date: 08/21/2018
10+
ms.date: 08/23/2018
1111
---
1212

1313
# Create and configure Azure Kubernetes Service clusters in Azure using Ansible
@@ -17,19 +17,7 @@ Ansible allows you to automate the deployment and configuration of resources in
1717
- **Azure subscription** - If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio) before you begin.
1818
- **Azure service principal** - When [creating the service principal](/cli/azure/create-an-azure-service-principal-azure-cli?view=azure-cli-latest#create-the-service-principal), note the following values: **appId**, **displayName**, **password**, and **tenant**.
1919

20-
- **Configure Azure Cloud Shell** or **Install and configure Ansible on a Linux virtual machine**
21-
22-
**Configure Azure Cloud Shell**
23-
24-
1. **Configure Azure Cloud Shell** - If you are new to Azure Cloud Shell, the article, [Quickstart for Bash in Azure Cloud Shell](/azure/cloud-shell/quickstart), illustrates how to start and configure Cloud Shell.
25-
26-
**--OR--**
27-
28-
**Install and configure Ansible on a Linux virtual machine**
29-
30-
1. **Install Ansible** - Install Ansible on a [supported Linux platform](/azure/virtual-machines/linux/ansible-install-configure#install-ansible-on-an-azure-linux-virtual-machine).
31-
32-
1. **Configure Ansible** - [Create Azure credentials and configure Ansible](/azure/virtual-machines/linux/ansible-install-configure#create-azure-credentials)
20+
- [!INCLUDE [ansible-prereqs-for-cloudshell-use-or-vm-creation1.md](../../includes/ansible-prereqs-for-cloudshell-use-or-vm-creation1.md)] [!INCLUDE [ansible-prereqs-for-cloudshell-use-or-vm-creation2.md](../../includes/ansible-prereqs-for-cloudshell-use-or-vm-creation2.md)]
3321

3422
> [!Note]
3523
> Ansible 2.6 is required to run the following the sample playbooks in this tutorial.

articles/virtual-machines/linux/ansible-create-vm.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: tomarcher
77
manager: jeconnoc
88
ms.author: tarcher
99
ms.topic: quickstart
10-
ms.date: 08/21/2018
10+
ms.date: 08/22/2018
1111
---
1212

1313
# Use Ansible to create a Linux virtual machine in Azure
@@ -17,19 +17,7 @@ Using a declarative language, Ansible allows you to automate the creation, confi
1717

1818
- **Azure subscription** - If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
1919

20-
- **Configure Azure Cloud Shell** or **Install and configure Ansible on a Linux virtual machine**
21-
22-
**Configure Azure Cloud Shell**
23-
24-
1. **Configure Azure Cloud Shell** - If you are new to Azure Cloud Shell, the article, [Quickstart for Bash in Azure Cloud Shell](/azure/cloud-shell/quickstart), illustrates how to start and configure Cloud Shell.
25-
26-
**--OR--**
27-
28-
**Install and configure Ansible on a Linux virtual machine**
29-
30-
1. **Install Ansible** - Install Ansible on a [supported Linux platform](/azure/virtual-machines/linux/ansible-install-configure#install-ansible-on-an-azure-linux-virtual-machine).
31-
32-
1. **Configure Ansible** - [Create Azure credentials and configure Ansible](/azure/virtual-machines/linux/ansible-install-configure#create-azure-credentials)
20+
- [!INCLUDE [ansible-prereqs-for-cloudshell-use-or-vm-creation1.md](../../../includes/ansible-prereqs-for-cloudshell-use-or-vm-creation1.md)]
3321

3422
## Create a resource group
3523
Ansible needs a resource group in which your resources are deployed. The following sample Ansible playbook section creates a resource group named `myResourceGroup` in the `eastus` location:

articles/virtual-machines/linux/ansible-manage-linux-vm.md

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ author: tomarcher
77
manager: jeconnoc
88
ms.author: tarcher
99
ms.topic: quickstart
10-
ms.date: 08/21/2018
10+
ms.date: 08/22/2018
1111
---
1212

1313
# Use Ansible to manage a Linux virtual machine in Azure
@@ -17,21 +17,7 @@ Ansible allows you to automate the deployment and configuration of resources in
1717

1818
- **Azure subscription** - If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/?ref=microsoft.com&utm_source=microsoft.com&utm_medium=docs&utm_campaign=visualstudio).
1919

20-
- **Configure Azure Cloud Shell** or **Install and configure Ansible on a Linux virtual machine**
21-
22-
**Configure Azure Cloud Shell**
23-
24-
1. **Configure Azure Cloud Shell** - If you are new to Azure Cloud Shell, the article, [Quickstart for Bash in Azure Cloud Shell](/azure/cloud-shell/quickstart), illustrates how to start and configure Cloud Shell.
25-
26-
1. **Linux virtual machine** - If you don't have access to a Linux virtual machine, you can [create a virtual machine with Ansible](ansible-create-vm.md).
27-
28-
**--OR--**
29-
30-
**Install and configure Ansible on a Linux virtual machine**
31-
32-
1. **Install Ansible** - Install Ansible on a [supported Linux platform](/azure/virtual-machines/linux/ansible-install-configure#install-ansible-on-an-azure-linux-virtual-machine).
33-
34-
1. **Configure Ansible** - [Create Azure credentials and configure Ansible](/azure/virtual-machines/linux/ansible-install-configure#create-azure-credentials)
20+
- [!INCLUDE [ansible-prereqs-for-cloudshell-use-or-vm-creation1.md](../../../includes/ansible-prereqs-for-cloudshell-use-or-vm-creation1.md)] [!INCLUDE [ansible-prereqs-for-cloudshell-use-or-vm-creation2.md](../../../includes/ansible-prereqs-for-cloudshell-use-or-vm-creation2.md)]
3521

3622
## Use Ansible to deallocate (stop) an Azure virtual machine
3723
This section illustrates how to use Ansible to deallocate (stop) an Azure virtual machine
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
author: tomarcher
3+
ms.service: ansible
4+
ms.topic: include
5+
ms.date: 08/23/2018
6+
ms.author: tarcher
7+
---
8+
9+
**Install Ansible** - [Install](/azure/virtual-machines/linux/ansible-install-configure#install-ansible-on-an-azure-linux-virtual-machine) and [configure](/azure/virtual-machines/linux/ansible-install-configure#create-azure-credentials) Ansible on a Linux virtual machine **--OR--** [configure Azure Cloud Shell](/azure/cloud-shell/quickstart)
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
author: tomarcher
3+
ms.service: ansible
4+
ms.topic: include
5+
ms.date: 08/23/2018
6+
ms.author: tarcher
7+
---
8+
9+
and - if you don't have access to a Linux virtual machine - [create a virtual machine with Ansible](/azure/virtual-machines/linux/ansible-create-vm.md).

0 commit comments

Comments
 (0)